简体   繁体   中英

Windows 7 ignores my JAVA_HOME created by my account

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 eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM