How can I change the Java Runtime Version on Windows (7)?

后端 未结 8 737
后悔当初
后悔当初 2020-12-07 10:02

How can I change the Java Runtime Version on Windows.

I installed Java 7 for some tests, and now I need the old java6 as system default, but I don\'t want to un

8条回答
  •  一生所求
    2020-12-07 10:27

    All you need to do is set the PATH environment variable in Windows to point to where your java6 bin directory is instead of the java7 directory.

    Right click My Computer > Advanced System Settings > Advanced > Environmental Variables

    If there is a JAVA_HOME environment variable set this to point to the correct directory as well.

提交回复
热议问题