How to Set Java_Home on Windows 7

Setting JAVA_HOME in Windows?

JDK stands for Java Development Kit, while JRE stands for Java Runtime Environment. JAVA_HOME should point to a JDK not a JRE as the JDK is used for development purposes. JDK includes the compiler and other tools needed to develop Java applications while JRE does not.

See How to set java_home on Windows 7? on how to change your JAVA_HOME.

Source:
Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - What do these mean?

setting JAVA_HOME in windows 7

Set JAVA_HOME to C:\mypath\Java\jdk1.7.0_17\

Then in your path variable add %JAVA_HOME%\bin

Setting JAVA_HOME

As many have mentioned I had to add...

C:\Program Files\Java\jdk_version\bin

...to the path variable.

However what was not mentioned and was stopping this from working was that I had to make sure
java\bin directory is in the path statement before the windows\system32 directory, otherwise this will not work.

I was able to find the information here.

setting up environment variables in windows 7 for java and ant

you can try the following:

SET ANT_HOME=my_path_to_ant_folder
SET JAVA_HOME=my_path_to_jdk_folder
SET PATH=%PATH%;%ANT_HOME%/bin;%JAVA_HOME%\bin;


Related Topics



Leave a reply



Submit