Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting JAVA_HOME

I'm having a problem when running programs that use Java from the command line. I get back a message saying Java.exe could not be found.

enter image description here

I've followed the instructions found in several places for setting JAVA_HOME in Windows 7.

enter image description here

As can be seen in the image I'm pointing to the JDK folder as instructed, I've also tried several variations including linking to the bin folder(where java.exe is located).

What am I doing wrong, and how can I debug this.

EDIT:

Typing Set in Command Prompt outputs

enter image description here

like image 671
Philip Kirkbride Avatar asked Dec 06 '22 13:12

Philip Kirkbride


1 Answers

Make sure that the jdk.xxxxx/jre/bin folder is in your PATH

like image 122
Jeremy Avatar answered Dec 22 '22 19:12

Jeremy