JAVA_HOME variable is not recognized in Win 7 Pro 32 bit

2.2k Views Asked by At

I have set JAVA_HOME system variable to C:\Program Files\Java\jdk1.6.0_30 and added %JAVA_HOME%\bin to Path variable.

When I check list of variables using new session of cmd I cannot see JAVA_HOME variable on the list at all, however Path variable contains record C:\Program Files\Java\jdk1.6.0_30\bin.

When I want to run mvn I get:

ERROR: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation

I double checked configuration, restarted the machine and the problem persists.

Can you please advise? It looks like the variables are set, but JAVA_HOME does not make it to the list of variables, however value which derives from it makes it to the Path variable

0

There are 0 best solutions below