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

后端 未结 11 2383
梦如初夏
梦如初夏 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

    I tried several of the posted methods, the important step seemed to be setting the correct system path (the "Path" environmental variable) to have included a folder that pointed to the relevant jar.exe. The variable changed from X to X + ;C:\Program Files\Java\jdk1.7.0_03\bin; you need to make sure the jdk folder part is relevant to your version, which I overlooked.

    The reason for my answer is to add the step I missed; which is to restart Eclipse! I tried running it a few times, but after closing and reopening it the project packaged correctly. It might not have been obvious to do this.

提交回复
热议问题