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

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

    This worked for me: Project JDE 5.0 OS: Windows 8.1 x64

    This PC > Properties > Advanced System Settings > Environment Variables: Added the following: Path: C:\Program Files (x86)\Java\jdk1.7.0_25\bin;C:\Program Files (x86)\Java\jdk1.7.0_17\bin;C:\Program Files (x86)\Java\jre7\bin

    I know the above is similar but thought id post what worked for me anyway as it reinforces the above answers :)

    NB to restart eclipse.

    0 讨论(0)
  • 2020-12-10 02:18

    This error comes because of Jdk1.7. So try 1.6 and set path to bin folder.

    It works for me...

    0 讨论(0)
  • 2020-12-10 02:19

    I was developing an app for BB JDE 5.0 and I had the java JDK 1.7. I was going crazy because I tough everything was ok. Then I realize that for JDE 5.0 I needed JDK 1.6. Installed it from here Java SE Development Kit 6 Update 45 changed the environment path and my problem was solved!. :)

    0 讨论(0)
  • 2020-12-10 02:23

    From the BlackBerry Support Forums:

    first thing is to check that the JDK is installed, and that the PATH is set correctly. Open a command line window, and run the "jar" command.

    0 讨论(0)
  • 2020-12-10 02:26

    The Solution is: Open My computer, right click > select properties > go to advanced > go to System environment variables > under PATH add this one:

    c:/Program Files/Java/jdk1.7.0_03/bin

    Close and reopen Eclipse and thats it...

    NOTE: jdk1.7.0... is for the java version you have installed on your computer

    0 讨论(0)
提交回复
热议问题