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

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

    Just right click on MyComputer, then Advanced System Settings-->Environment Variables-->New Then in the "variable Name" text field add the string "PATH" or if it already exists select PATH from the list and click edit then append the path for "bin" folder in java in program files to the Variable value text field followed by a semicolon (;), if not exits add the path of bin directory of your java folder in "Variable Value" field and click "OK".

    If you want to check the result, open up a command prompt and type "java" then hit enter.

提交回复
热议问题