I am using Java SE 7 to program simple games for windows and mac, but I have to switch to java 6 to run games such as Minecraft on my computer. This used to work just fine before I updated to Mac OS X 10.8.2 Build 12C60.
Before this update I used to be able to open Java Preferences and check off Java 6 or Java 7. But now I don't seem to be able to find Java Preferences.
I am running OS X 10.8.2 (latest version).
Best Answer
I don't think it's possible to switch JRE (runtime environments) see here:
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jre.html
which states:
Workaround:
I had a similar problem like you have with Minecraft with Wuala. Where I needed to run Wuala using Java 1.6 whilst I needed to develop with JDK 1.7 and I managed this by opening the Wuala.app package and changing its startup script in:
from:
to:
I.e simply replacing:
exec
with:/usr/libexec/java_home -v 1.6.0 --exec
This is of course rather involved and will get broken every time wuala autoupdates but otherwise it works.
To use another JDK see here:
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
which states:
Here is an illustration and examples from my setup:
Oracle JDK installs:
Apple supplied JDK:
This works for me also to use the Apple supplied 1.6 JDK
Choose between the 1.7 Oracle versions:
Selecting the first Oracle JDK 1.7.0_04
Selecting JDK 1.7.0_07
The default JDK is the highest one:
Defaults to the highest "patch level when using only minor version number: