Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 16
Registered: ‎11-06-2012
My Device: BlackBerry 9800
Accepted Solution

problem setting up the dev env on a Mac to run the Hello World app

Hello,

I'm having some problems setting up my development environment and trying to run the "Hello World" app. I would be very grateful if anyone can help me.

 

I'm on a Mac with:

+ OS X 10.7.4
+ Eclipse 3.7.2 (Build id: M20120208-0800)
+ Java version as reported by "java -version":

java version "1.6.0_33"

Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

 

As I already had an Eclipse environment, I've installed the BlackBerry Java Plug-in (and all the available BlackBerry SDKs) following the instructions "Adding the BlackBerry Update site in Eclipse (Mac)"
https://developer.blackberry.com/java/download/eclipse?os=mac

 

When following the Hello BlackBerry tutorial ( https://developer.blackberry.com/java/documentation/first_app_1968215_11.html ), after clicking "Finish",
a dialog titled "Error - BlackBerry Java Development Environment" is shown with the message:

 

"Cannot find RIMUsbJni.dll. Without this dll the IDE cannot connect to USB enabled handhelds.
Add RIMUsbJni to java.library.path"

... with "Don't show this message again" and "OK" buttons.

 

As I've read in another thread that this may be because 64-bit JDK is being used instead of the 32-bit JDK ( http://supportforums.blackberry.com/t5/Java-Development/Cannot-find-RIMIDEWin32Util-dll/m-p/342343#M... ), I've used OS X "Java Preferences.app" to set 32-bit Java as the preferred Java, but I still get the same error.

 

OTOH, I still have the 64-bit Eclipse installed. Is this really important? Do I have to remove the 64-bit Eclipse and install the 32-bit Eclipse to fix this?

 

Thanks in advance.

Contributor
Posts: 16
Registered: ‎11-06-2012
My Device: BlackBerry 9800

Re: problem setting up the dev env on a Mac to run the Hello World app

Replying to myself:

I deleted my 64-bit Eclipse and installed the "BlackBerry Plug-in for Eclipse" for developers without an existing Eclipse environment. Now it works, I could load the app into my BB and run it, so...

 

it seems that the 64-bit Eclipse cannot be used for BB Java development; the 32-bit Eclipse is required.

Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: problem setting up the dev env on a Mac to run the Hello World app

I was going to suggest that you try loading a 32 bit Eclipse independently.  AFAIK, it should be possible to retain both on the same device.  But then I am not a Mac user....

 

Anyway, can you mark this as solved?  Instructions in Help link near top if you need it.