JAVA_HOME environment variable and Java JDK fun

一个人想着一个人 提交于 2019-12-03 10:59:32
Jigar Joshi

You need to reset your path variable to point to 1.6

something like

Additionally, make sure the variable JAVA_HOME is also set with the above location.

JAVA_HOME is used by other applications, such as Tomcat. Windows just checks the PATH environment variable for locations where it can find the java executable.

Try this on the cmd shell:

> java -version
java version "1.5.0_16"
> set PATH=%JAVA_HOME%\bin;%PATH%
> java -version

This Image will explain all steps.

For More Explanation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!