Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)

≯℡__Kan透↙ 提交于 2019-12-02 08:42:20

Your system path still contains 1.6.

C:\Program Files\Java\jdk1.6.0_45\bin;

It has both, try removing this and just having 1.8. (already in there)

I removed the PATH entry which pointed to java JRE in Oracle client directory, leaving just 1 in PATH pointing to correct java JDK/JRE , and Kaboom it worked.

Use where java in cmd. You will find different versions of java. Leave the one you want to use and uninstall others.

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