How to set path for Jre 6 when jre 7 installed?

前端 未结 12 809
深忆病人
深忆病人 2021-01-18 00:19

I am programming through java 1.6 u_17, but i have JRE version 6 and JRE version 7 installed, so how to run my compiled program from JDK 1.6 to run through the JRE 6 only?<

12条回答
  •  再見小時候
    2021-01-18 00:42

    For those who had the same problem I suggest reading this thread:

    https://superuser.com/questions/479889/wrong-java-version-being-reported

    Quote of wmz: "To check what actually executes when you run 'java -version' run from command line: for %I in (java.exe) do @echo %~$PATH:I"

提交回复
热议问题