问题描述
我有大量的类文件,与现场managers.I正在此错误
回复:I / O错误:不能运行程序罐子:CreateProcess的错误= 2,系统找不到指定的文件,运行的app.If我正在剔除一些类它工作正常,我..Please建议我如何解决此错误。
I have large number of class files , with field managers.I am getting this errorRe: I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified, on running the app.If i am excluding some classes it works fine for me ..Please suggest me how to resolve this error .
推荐答案
我已经经历了含有大量类的项目完全相同的问题。由于在类的数量的增加,在java jar文件从导致在编制问题的根本移开
I have experienced the exact same issue with a project that contained a lot of classes. Due to the increase in the number of classes, the java jar file moves away from the root which causes issues in compiling.
我很幸运,来解决这个错误。 这个链接已经从黑莓支持论坛非常有帮助。下面的步骤解决我的问题:
I was lucky to resolve this error. This link has been very helpful from BlackBerry Support Forums. The following steps resolved my issue:
- 右键点击我的电脑。转到属性。
- 单击高级系统设置。
- 单击环境变量
- 突出显示路径,然后单击编辑。添加C:\\ Program Files文件
(86)\\的Java \\ jdk1.6.0_26 \\ BIN;到PATH的开始。
步骤4增加了java的jar文件到PATH变量,并增加了更贴近根。编译的一些类项目时添加接近根是很有帮助的。
Step 4 adds the java jar file to the PATH variable and adds it closer to the root. Adding closer to the root is helpful when compiling a project with several classes.
这篇关于黑莓错误:无法运行程序和QUOT;瓶和QUOT;:CreateProcess的错误= 2,系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!