Thursday, 15 April 2010

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



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

i developing blackberry application number of class files in it; 16 java classes @ moment , maintain increasing app complex lot of screen , features. working in eclipse blackberry java plug-in. using blackberry jre 6.0. have started getting next error:

error: cannot run programme "jar": createprocess error=2, scheme cannot find file specified

i have google error , many suggest caused java environmental variable path. however, have checked , seems fine @ end regarding that. have noticed when number of classes increased or class becomes more lengthy, error occurs. rid of error reducing number of classes in project. created separated projects dividing classes between each , compiled fine. can believe there no issue source code.

can guide how overcome error in single project contains several classes. please help.

edit: came across next on blackberry back upwards forums:

"i think mutual reason (assuming have jdk installed) big number of files in project, and/or project directory far root.

the issue rapc compiler calls jar utility, building command line consists of class files in application. if command line length exceeds maximum length allowed system, error."

how work around if whats causing it.

i lucky resolve error. this link has been helpful blackberry back upwards forums. else facing same issue, next steps resolved issue:

right click computer. go properties. click advanced scheme settings. click environment variable highlight path , click edit. add together c:\program files (x86)\java\jdk1.6.0_26\bin; start of path.

step 4 adds java jar file path variable , adds closer root. adding closer root helpful when compiling project several classes.

blackberry jar compiler-errors executable-jar

No comments:

Post a Comment