Windows 7 ignores my JAVA_HOME created by my account

90 Views Asked by At

How do I persuade Windows to use the JDK of my account instead of default java placed in the system (admin) "Windows\System32" which run java 1.6.

When i tape : where java i got the two paths (my java and system one). when i run echo %JAVA_HOME% i got my java (1.8) but when i execute java -version i got the system one (1.6)

How could i erase the system one without having the habilitation to admin.

PS : i cannot acces to admin variables system.

1

There are 1 best solutions below

3
Arvind Kumar Avinash On

Set the path of your Java bin folder into the path variable e.g. if your Java is installed at C:\java\jdk1.8.0_09, set C:\java\jdk1.8.0_09\bin as the first entry in the PATH environment variable.

Alternatively, you can set C:\java\jdk1.8.0_09 into JAVA_HOME and then %JAVA_HOME%\bin into the PATH environment variable. Make sure to make this the first entry in the PATH environment variable.