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.
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, setC:\java\jdk1.8.0_09\binas the first entry in thePATHenvironment variable.Alternatively, you can set
C:\java\jdk1.8.0_09intoJAVA_HOMEand then%JAVA_HOME%\bininto thePATHenvironment variable. Make sure to make this the first entry in thePATHenvironment variable.