JAVA_HOME environment variable does not point to JDK or JRE

syaloom picture syaloom · Feb 7, 2017 · Viewed 16.9k times · Source

I've got a problem when starting up java application (.exe) instead of .jar . FYI, I've got a procedure on the track such as installing java (JDK 7 & JRE 7), using environment variables JAVA_HOME & EXE4J_JAVA_HOME. But, when I take a look at control panel, Java(TM) 7 wasn't there. Here's the image that I get when I startup my .exe

enter image description here

when I click ok, this is the result

enter image description here

enter image description here

Very appreciate the others' help. Thank you

Answer

Alejandroppir picture Alejandroppir · Feb 7, 2017

Try this and post the result:

Go to: Control Panel » System » Advanced » Environment Variables » System Variables

Look for the JAVA_HOME and post the value of the variable. Next, go to file explorer and search for the path that you have copied from the JAVA_HOME variable.

Do you have the folder mentioned on the system varible here?