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

前端 未结 12 803
深忆病人
深忆病人 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 01:00

    I had same problem. Issue is that Java installation will copy a java.exe, javaw.exe and javaws.exe to windows/system32 directory. You must have installed JDK7 recently.

    I just removed those files from Windows/System32 directory, however, kept older version in path. This solved the issue.

    Try it out.

提交回复
热议问题