I still see Java 1.8 when I am doing java -version after downgrading to 1.7

早过忘川 提交于 2019-12-05 08:36:17

TRY DOING THE FOLLOWING:

Type "regedit" from startup menu. Take a back up if you are a novice.
Go to "HKEY_LOCAL_MACHINE->SOFTWARE->JavaSoft->Java Runtime Environment"
Double click on "CurrentVersion" on the right side of the panel
Change version to "1.7".


If you have "C:\ProgramData\Oracle\Java\javapath" in your path variable . Then open the
location and make sure the java.exe file points to respective 1.7 directory.

If you have "C:\ProgramData\Oracle\Java\javapath" in your path variable, bring your JAVA_HOME/bin path before it.

Ex: C:\Program Files(x86)\Java\jdk1.7.0_79\bin;C:\ProgramData\Oracle\Java\javapath.

I faced the similar issue and was not able to downgrade the java version from 1.8 to 1.7.

close your MS-DOS and open a new MS-DOS window. try again.

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