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
Regular Contributor
Posts: 67
Registered: ‎08-16-2011
My Device: 7185
Accepted Solution

Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

Hi

my applications works fine for the current code ,but if i add any new function or class in my application code eclipse shows error of

Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

 

i searched on forum and google for this problem some solutions are related to java path but myjava path is ok as current code works fine

 

so what ia problem ?? and whats solution for that ??


 

Regular Contributor
Posts: 67
Registered: ‎08-16-2011
My Device: 7185

Re: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

:Angel:

 

got solution to problem its need path of .jar file previously i didnt understand why it neede path of jar now its reason is here

 

http://supportforums.blackberry.com/t5/Java-Development/I-O-Error-Cannot-run-program-quot-jar-quot-C...

 

 

Developer
Posts: 52
Registered: ‎11-24-2011
My Device: Bold 9930

Re: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

[ Edited ]

Couple of words on the issue.

I had Eclipse plugin 1.5 installed

I had 1.6 up 29 installed.

Everything was OK until I decided to replace it with up 30.

And then I spend about three hours(!)  trying to fix this (CreateProcess error=2) error.

Reinstalled plugin and all related folders two times(!), no luck. PATH was OK.

Eventually returned back to up 29, and I'm OK again !!!! :smileyhappy:

... 

P.S. BTW, the new version of Eclipse plugin is posted.

Developer
Posts: 173
Registered: ‎06-11-2009
My Device: Not Specified

Re: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

There is one thing to take into account.

Registry (at least Windows 7) contains three copies of JAVA_HOME !

Make sure that ALL of these are updated properly. 

Developer
Posts: 52
Registered: ‎11-24-2011
My Device: Bold 9930

Re: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

Well, in my case the problem was soled when I set 'Compiler compliance level' to 1.3.

'Installed JREs'  checked on JRE 7.0

Contributor
Posts: 13
Registered: ‎12-05-2011
My Device: 9800

Re: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

[ Edited ]

@walkin That Saved a Lot of time for me bro.. Thanks a lot :smileyhappy::Rockon: