-2

I have learned that on my computer, Minecraft will only run with Java 6 installed. As soon as I install java 7 (JDK or otherwise), the application encounters multiple problems (doesn't crash, just can't connect to any file servers.) My question is: Is there a way to allow Minecraft to use Java 6 while all other programs use 7?

4

1 回答 1

0

You have installed 2 versions: JRE 6 and JRE 7. They were stored in Program Files\Java folder.

To run your program in JRE 6: - The first way, you must re-config Environment Variables and then run command / terminal to interpre your program. java yourfolder\yoursubfolder\yourMain

yourMain is a file "yourMain.class"

  • The second way, you must change your current directory to JRE 6 Folder in Program Files\Java, you can do that in command / terminal (ex: DOS...). And then, you use java command normally.
于 2012-07-04T02:12:53.123 回答