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

后端 未结 4 1739
悲哀的现实
悲哀的现实 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-04 00:02

    Since Java supports a "-version" command line option. You can use this to select a specific version to run, e.g.:

    java -version:1.7 -jar [path to jar file] will run a jar application in java 1.7, if it is installed.

    See Oracle's documentation here: http://docs.oracle.com/javase/6/docs/technotes/tools/windows/java.html

提交回复
热议问题