How to change the default version of JDK on the Mac

By Shahram Javey


Mac Java Preferences
On the Mac, there is an application called Java Preferences. You can use the Spotlight to find it. Launch the Java Preferences and in the Java Application Runtime Settings panel, drag the version of the JDK that you wish to use to the top. Save and restart any terminal applications that you may have had opened and you should be set.

3 Responses to “How to change the default version of JDK on the Mac”

  1. Mike Says:

    I recently converted to the wonderful world of Mac OSX and this page helped me out.

    Thanks.

  2. Migrating to Java 1.6 (Warning: Flex Builder/Eclipse wont work with it) | code zen Says:

    [...] but running the build file still did not work. After a few other events, including trying the Java Preferences Application without any luck, I finally found this post that basically talked about the CurrentJDK symlink that [...]

  3. OLIO - A Miscellany » OS X Java Versions Says:

    [...] How to change the default version of JDK on the Mac [...]

Leave a Reply