Switching Java Versions on Mac OS X

Skip to end of metadata
Go to start of metadata

In order to make a newly-built version of java act as the default java version, copy the entire ./build/bsd-i586/j2sdk-image dir to /usr/local/java-1.7.0-internal and add a suffix with the date:

Link /usr/local/java-1.7.0 to the latest build:

I encapsulated these functions in the script update-usr-local.sh:

This results in a new JVM:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.