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
New Developer
Posts: 1
Registered: ‎08-19-2009
My Device: Not Specified

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

So what I did to fix this problem was. I went to "Configure Blackberry Workspace" to "Installed Components" I have more then 1 component package installed. So I changed it to something other then what I was using clicked applu, cleaned the workspace, then changed it back. After I tried to build rapc worked fine.

 

Not sure if this will help. The root cause of this problem seems to be unknown.

Contributor
Posts: 21
Registered: ‎07-26-2010
My Device: Not Specified

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

I am also having this issue.

I have 99 files, and upon adding the 100th file, I get this error.

 

IS there any simple fix?

~ Logic and reason above all things ~
http://amatoc.com/
Developer
Posts: 69
Registered: ‎08-13-2008
My Device: Not Specified

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

The only symple way that i know is to uninstall all, and install it again.

Contributor
Posts: 41
Registered: ‎01-27-2011
My Device: Not Specified

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

I'm having the same problem, with only 43 source files. Has anyone found a fix for this?

 

Exported static routine: .main(String[]) is multiply defined.
Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified
Packaging project SCCCLD_BB_APP failed (took 4.578 seconds)

Visitor
Posts: 1
Registered: ‎02-17-2011
My Device: Not Specified

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

I got same problem pls post the sudggestions....

 

Thanks

SUBBU

Developer
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

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

jar.exe needs to be in your PATH. Figure out where it is (should be in your installed Java directory under bin/), add it to the PATH, and restart Eclipse.

Trusted Contributor
Posts: 121
Registered: ‎01-19-2011
My Device: Not Specified
My Carrier: engineer

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

jayprofit have reason the plugin need jar.exe in my case it try to read of folder jre when the jar.exe there was in the folder jdk so I copy this file to folder jre and solved

Developer
Posts: 285
Registered: ‎08-06-2010
My Device: Z10

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

 


kaibaseto wrote:

jayprofit have reason the plugin need jar.exe in my case it try to read of folder jre when the jar.exe there was in the folder jdk so I copy this file to folder jre and solved


 

This worked for me as well,

 

I moved C:\Program Files\Java\jdk1.6.0_21\bin\jar.exe to C:\Program Files\Java\jre6\bin\jar.exe

and

 C:\Program Files (x86)\Java\jdk1.6.0_21\bin\jar.exe to C:\Program Files (x86)\Java\jre6\bin\jar.exe



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Highlighted
Contributor
Posts: 41
Registered: ‎05-26-2011
My Device: Developer
My Carrier: Developer

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

I also faced the same problem and worked your solution and its fixed

 

Can you explain the root cause of the problem and will your solution affect anywhere, just cross checking