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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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

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

 

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...

 

 

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

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 !!!! Smiley Happy

... 

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
My Carrier: Rogers

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
My Carrier: Vodafone

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 Smiley Happy