So, I broke Java Preferences.app. I'm on Mountain Lion. I had Java 6 SE (the Apple-distributed JDK/JRE) and Oracle's Java 7u10 preview. Trying to get a stub app to launch with Java 7, I unchecked the Java 6 SE checkboxes in Java Preferences.app. Now not only will my stub app not launch, but Java Preferences.app won't launch (it says there's no valid JRE 1.4+ available). I understand this is probably because Apple's Java launcher stub is not compatible with 7u10 — not sure how to manually re-enable SE 6, though.
MacOS – Re-Enable Apple Java 6 SE from Command Line
javamacos
Related Question
- MacOS – Java 7 JRE Not Detected on Clean Install of Mountain Lion
- MacOS – Why does Java SE 6 Web Start (javaws) not find the JRE with Apple’s Java for OS X 2012-006 on Mountain Lion
- MacOS – How to reinstall Java 6, for development for Android, on Mountain Lion
- MacOS – Java WebStart fails on Mac OS Mountain Lion
- MacOS – How to launch apps that require Java on Mountain Lion with only Java 7 installed
- MacOS – Is it possible to install JDK 7 after installing MATLAB on Mountain Lion
- MacOS – Can’t enable Java for browser
Best Answer
Two things are needed worst case (and assuming you are still on 10.6 Snow Leopard):
There is great coverage of the how and why I came up with these steps from Rich Trouton's blog:
Apple also has similar steps in their KB article about the move from SE 6 to 7 here: