Thursday, October 20, 2011

Blackberry JDE: Eclipse I/O Error: Cannot run program "jar": CreateProcess error=2

The Problem

At one point when I've created a new Screen in my Blackberry JDE Eclipse project I received an error:

Eclipse I/O Error: Cannot run program "jar": CreateProcess error=2

I searched the Internet for solutions and several people stated that this happend for them after the exceeded a certain number of files in their project. After trying different things I found the below solution working for me.

The Solution

The easiest fix for this error is to copy the jar.exe from the Java JDK binary folder to JRE binary folder.

The files is normally under:
C:\Program Files (x86)\Java\jdk1.6.0_27\bin\jar.exe

The version number can be different. But since Blackberry JDE only runs under 32 bit Java/Eclipse is has to be the Java version in the (x86) Program Folder.

Paste the file into:
C:\Program Files (x86)\Java\jre6\bin\jar.exe

That's it.

0 comments:

Post a Comment