4

I've tried just about everything but it will not recognize it.

I have the latest version of JDK installed, the path is located at "C:\Program Files\Java\jdk1.8.0_25". This is what I'm using for my "variable value" field when I add the new variable "JAVA_HOME"..

I also have a %JAVA_HOME%\bin; in my path variable. I've restarted multiple times, making small changes..

Help me :(

Keep in mind I don't have much of a clue of what I'm doing.. So I could be going about it completely wrong.. Running it in cmd

Roney Michael
  • 3,964
  • 5
  • 30
  • 45
Manuel Velasco
  • 41
  • 1
  • 1
  • 3
  • 5
    show us the actual text of **EXACTLY** what you type in. – markspace Dec 09 '14 at 01:02
  • It will be better to show a screenshot of your Environment Variables settings, you can right-click on My Computer and select Properties, select the “Advanced system settings” link, System Properites==>Environment Variables. – Yigang Wu Dec 09 '14 at 01:15
  • Thanks for the answers guys, I was able to get it running using a Shell Script. Turns out, for what I needed this for I did not need to set up a new Environment Variable for it :) – Manuel Velasco Dec 09 '14 at 16:21

1 Answers1

5

Change the path value %JAVA_HOME%\bin, instead of set this

C:\Program Files\Java\jdk1.8.0_25\bin

After setting that, open command prompt and check whether you have set JAVA_HOME correctly.

echo %JAVA_HOME%
java

echo %JAVA_HOME% will print the location where java installed and java will show the usage of java.

See here how to set JAVA_HOME

Community
  • 1
  • 1
Kumar
  • 3,782
  • 4
  • 39
  • 87