Wednesday 23 May 2012

Cannot find RIMIDEWin32Util.dll when running RIM BlackBerry JDE on x64


I recently had to install the RIM BlackBerry JDE 6.0.0 on my 64 bit dev PC and as often seems to be the case when I install a new Java based IDE I ran into some small configuration issues.

The Problem:
when I installed the BlackBerry JDE there were some warnings saying that this needs the 32 bit JDK, whereas the default for me is the 64 bit JDK.  I duly ignored the errors/warnings, I wasn't about to re-install my JDK because of this, besides, what's to say some other project won't depend on me having the 64 bit version.

The JDE ran OK and I played about a bit, don't get me started on that... and eventually closed it down.

Next time I fired it up I got:
Error - BlackBerry Java Development Environment.
Cannot find RIMIDEWin32Util.dll. This is a required component of the IDE.
Unsurprisingly my first port of call was Google, here came across various forum and StackOverflow solutions involving un-installing the JDK, rebooting - re-installing different versions etc etc... thinking cap on... that can't be right... time to try something else.

After a little refreshing my memory on CLASSPATH, JAVA_HOME etc I decided I was armed to fix this - so I went off to find the starting point for the JDE:
"C:\Program Files (x86)\Research In Motion\BlackBerry JDE 6.0.0\bin\ide.bat"

Wohoo! its a good old BAT file!

add the line
set PATH=C:\Program Files (x86)\Java\jre6\bin;%PATH%
to the top of it

Job Done

Reinstall my JDK?? Pah!

(admittedly it so happens that I had previously installed the 32 bit JDK and never uninstalled it).