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
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 !