简体   繁体   English

Windows 7 忽略我的帐户创建的 JAVA_HOME

[英]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.我如何说服 Windows 使用我帐户的 JDK 而不是放置在运行 java 1.6 的系统(管理员)“Windows\\System32”中的默认 java。

When i tape : where java i got the two paths (my java and system one).当我录音时: where java我得到了两条路径(我的 java 和系统一条)。 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)当我运行 echo %JAVA_HOME%我得到了我的 java (1.8) 但是当我执行java -version我得到了系统一 (1.6)

How could i erase the system one without having the habilitation to admin.我怎么能在没有管理员权限的情况下擦除系统一。

PS : i cannot acces to admin variables system. PS:我无法访问管理变量系统。

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.将 Java bin 文件夹的路径设置为路径变量,例如,如果您的 Java 安装在C:\\java\\jdk1.8.0_09 ,请将C:\\java\\jdk1.8.0_09\\binPATH环境变量中的第一个条目.

alternatively, you can set C:\\java\\jdk1.8.0_09 into JAVA_HOME and then %JAVA_HOME%\\bin into the PATH environment variable.或者,您可以将C:\\java\\jdk1.8.0_09JAVA_HOME ,然后将%JAVA_HOME%\\binPATH环境变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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