Java: How do I switch between multiple versions of Java on Mac OS X?
Mac OS X includes multiple versions of Java, and allows you run them side by side. The Java Preferences Application enables you to select the version of Java that is used by default on the command line as well as for applets, package applications, and Java Web Start applications.
To access the Java Preferences Application:
Open Macintosh HD, and click on the Applications folder
From the Applications folder, click on Utilities
From the Utilities folder, select the Java folder
From the Java folder, click on Java Preferences
Note: Depending on your version of Mac OS X, you may need to select the folder for the current version of Java (for example: J2SE 5.0), and then click Java Preferences.
Double-click on Java Preferences. The Java Preferences window will then be displayed. Adjust the settings according to your preferences
Note: The Java Preferences window may vary depending on your version of Mac OS X.
Mac OS X 10.4
Java Applet Runtime Settings: When a Java applet is executed in the browser, the runtime settings are used for the version of Java that is selected. Select the radio button for the version of Java that you prefer to set as your default.
Java Applet Versions: Drag the versions of Java listed to position them in order of preference. Web browsers will then use this order to determine which version to use for applets and will load the first compatible architecture in this list.
Mac OS X 10.5
Java Applications Runtime Settings: Click and drag the Java versions into the order which you prefer them to be used, as some Java and Web Start applications work with multiple versions of Java.
Java Application Versions: Click and drag the Java versions into the order which you prefer them to be used, as some Java and Web Start applications work with multiple versions of Java.
When finished, click Save