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

前端 未结 12 820
深忆病人
深忆病人 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:56

    set the PATH variable to your jdk6\bin directory. so that it will pick the javac and java from jdk6.

    for setting the path variable go to Environment Variables. After setting the path variables you need to restart your command prompt. (NOT the computer).

提交回复
热议问题