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

后端 未结 11 2381
梦如初夏
梦如初夏 2020-12-10 01:33

When I run my BlackBerry project in Eclipse, I get the following error:

Error: Cannot run program \"jar\": CreateProcess error=2, The system cannot fi

11条回答
  •  佛祖请我去吃肉
    2020-12-10 02:14

    Adding C:\Program Files\Java\jdk1.8.0_131 to JAVA_HOME and C:\Program Files\Java\jdk1.8.0_131\bin to Path in System Variables within Environment Variables wasn't sufficient.

    Turns out, you need to add those two variables and their respective values to both user and system variables within environment variables.

    I added the following to BOTH User variables as well as System variables in Environment Variables: Variable: JAVA_HOME Value: C:\Program Files\Java\jdk1.8.0_131

    Variable: Path Value: C:\Program Files\Java\jdk1.8.0_131\bin

    That worked for me !

提交回复
热议问题