Java 7 64 bit on windows 7: how to switch java versions

后端 未结 4 1741
悲哀的现实
悲哀的现实 2021-01-03 23:05

I need to switch from the installed java 7 at 64bit to the installed java 6 on my Windows 7 64bit OS but the usual procedure doesn\'t works. I tried to change the JAVA_HOME

4条回答
  •  不知归路
    2021-01-03 23:50

    JAVA_HOME is not used by java.exe.

    Make sure to have the path of the Java 6 JRE's bin directory in the PATH environment variable, before the Java 7 JRE's one, and before windows system directory (system32).

    Or you can use the full path of the java command:

    c:\java6\bin\java com.foo.bar.Main
    

提交回复
热议问题