Oct 05, 2009
Change System-Wide Default Java Version on Mac OS X
Changing the Java version on OS X is extremely easy.
Simply navigate to /Applications/Utilities/Java/Java Preferences.App and launch the app. There you can set the version of Java to use for both Applets and Applications.
Keep in mind that running a java -version command from a terminal will only reflect the Java Preferences.App settings if you haven’t specified a JAVA_HOME in your .bashrc or .profile, etc.






