how to set Java 7u9 to be the default JVM on mac osx 10.7.5

Claudio Nieder private at claudio.ch
Mon Nov 5 11:05:17 PST 2012


Hi,

> According to the following webpage, versions of osx like mine are supposed to default to the highest version of Java which the os can find: http://reviews.cnet.com/8301-13727_7-57533880-263/java-preferences-missing-after-latest-os-x-java-update/. But I clearly haven't figured out how to let the os know what that version is.

Ah, and I wondered, why I didn't find Java Preferences anymore. The article ends with "In short, if you have OS X 10.7 or later and wish to configure Java after applying this update, then you'll be using Oracle's Java system preferences pane." But that one also does "not work" for me. To be precise: I have both the released JDK 7u9 as well as JDK snapshot realease 8 build b63 (from http://jdk8.java.net/download.html) installed on my Mac besides Apples's Java 6. If I open the Java control Panel from the OSX System Preferences go to the Java tab and press the View... button a "Java Runtime Environment Settings" dialog appears with only one line:

Platform Product  ...
1.7      1.8.0-ea ...

It does not offer me a choice between 7u9 or 8.

The only thing which still works as I expect is the command line java_home, which shows me all three installed Java version and allows me to run commands with the -exec option using the desired version.

claudio
-- 
Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743, www.claudio.ch






More information about the macosx-port-dev mailing list