

Update Java runtime settings on Windows, java -version is running the wrong version of java. Try now setting your default Java to one of the different Java versions you currently have installed. If you're doing it in a terminal session, reload it with the source ~/.bashrc.

Running multiple versions of Java on the same Windows machine, How do I change java from 1.8 to 1.6 in Windows? Now with these functions in place you can set the desired versions of Java as active. For instance: c:\Users\Jon\Test>"c:\Program Files\java\jdk1.6.0_03\bin\java.exe" -version java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) c:\Users\Jon\Test>"c:\Program Files\java\jdk1.6.0_12\bin\java.exe" -version java version "1.6.0_12" Java(TM Yes - just explicitly provide the path to java.exe. Why is java -version returning a different version to the one defined, , modify PATH by adding the location of your jdk5/bin directory to the beginning. In the Edit windows, modify PATH by adding the location of your jdk5/bin directory to the

Click on Environment Variables, under System Variables, find PATH, and click on it. Change your PATH variable so that it has the location of the jdk5/bin directory: Start -> Control Panel -> System -> Advanced.
JAVA 1.6 FOR WINDOWS 10 HOW TO
How to change java version in windows command promptĬhanging current version of Java within Windows, Click on Environment Variables, under System Variables, find PATH, and click on it.
