Since I upgraded to Mac OS X Tiger, I also installed Java 1.5 on my PowerBook.
Apple provides a small application to change the default JVM to 1.5 instead of the standard 1.4.2. However it is only useful for Applets and WebStart applications.
To change the default JVM for the
$ cd /System/Library/Frameworks/JavaVM.framework/Versions
$ sudo mv Current Current.old
$ sudo ln -s 1.5 Current
Et voila!
$ java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56)
Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing)

May 16th, 2005 at 18:14
I think it’s supposed to be ‘CurrentJDK’ instead of just ‘Current’.
$ cd /System/Library/Frameworks/JavaVM.framework/Versions $ sudo mv CurrentJDK CurrentJDK.old $ sudo ln -s 1.5 CurrentJDK
May 18th, 2005 at 9:50
Neither one of these seems to work, at least according to the information shown when you select ‘About Eclipse Platform’ from the ‘Eclipse Menu’, click on ‘Configuration Details’, scroll down a page, and look at java.home, java.runtime.version, etc.
May 27th, 2005 at 11:06
Well, I changed both of those and from ‘Configuration Details’ I got 1.5 running Eclipse. Maybe you also need to change the prefs. from “/Applications/Utilities/Java/J2SE 5.0″. I changed them first but Eclipse was still using 1.4.2 until I changed the “Current” and “CurrentJDK” to point to 1.5.0. Oh, and don’t forget to add the 1.5.0 JVM to Eclipse in the Preferences-Java (also 5.0 in the Compiler section there!).
Hope that helps…
May 28th, 2005 at 19:51
Just changing the Current and CurrentJDK symlinks and nothing else worked just fine for me.
You might want to check all the symlinks in JavaVM.Framework to make sure they all use Versions/Current and Versions/CurrentJDK.
June 8th, 2005 at 16:02
Now things look right. Seems like I required a reboot for the changes to take effect. Now on to another Java program I use, OxygenXML, which is still finding v 1.4.2 somehow.
June 25th, 2005 at 0:40
I changed both the Current and CurrentJDK and everything works fine when using jGRASP…except for the fact that the program for some reason is just giving me a constant busy wheel and the only way to shut it down is by forcing it. Any ideas why this is happening?
December 24th, 2005 at 20:34
If you want to use it as defualt JRE you just have to open Java Preferences (Applications/Utilities/Java/J2SE 5.0 normally) and change the “Java Application Runtime Settings” that your mac uses JRE 5.0 as default.