黑莓错误:无法运行程序和QUOT;瓶和QUOT;:CreateProcess的错误= 2,系统找不到指定的文件 [英] Blackberry Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified

查看:412
本文介绍了黑莓错误:无法运行程序和QUOT;瓶和QUOT;:CreateProcess的错误= 2,系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大量的类文件,与现场managers.I正在此错误
回复:I / O错误:不能运行程序罐子:CreateProcess的错误= 2,系统找不到指定的文件,运行的app.If我正在剔除一些类它工作正常,我..Please建议我如何解决此错误。

I have large number of class files , with field managers.I am getting this error Re: 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.

我很幸运,来解决这个错误。 <一href=\"http://supportforums.blackberry.com/t5/Java-Development/why-cause-more-then-100-compiled-classes-packaging-I-O-error/td-p/520282\"相对=nofollow>这个链接已经从黑莓支持论坛非常有帮助。下面的步骤解决我的问题:

I was lucky to resolve this error. This link has been very helpful from BlackBerry Support Forums. The following steps resolved my issue:


  1. 右键点击我的电脑。转到属性。

  2. 单击高级系统设置。

  3. 单击环境变量

  4. 突出显示路径,然后单击编辑。添加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,系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆