How to remove Java 6 from your Mac
The Java 6 developer preview (b88) for Mac OSX 10.4 (Tiger) does not run on 10.5 (Leopard). Having it still installed can cause a few problems with Leopard. In fact, using it on Tiger can cause issues because it's so different from Java 6 final that ships for Windows, Linux, and Solaris. Because of this I recommend you delete it and wait for the final Java 6 for Mac. (Apple no longer makes this older version available on their download site either).
A few people have asked me how to remove Java 6 from their Mac, recently, and I realized that there isn't an uninstaller to make it easy. So here's what to do, taken directly from this post by Scott Kovatch, an Apple Java developer.
From the Terminal type these commands
sudo rm -rf /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
sudo rm /System/Library/Frameworks/JavaVM.framework/Versions/1.6
That's it. You'll have 1.5 as the default again. If you have a folder named 'Java SE 6' in
/Applications/Utilities/Java, delete that too.
That should getcha goin'. I'm mainly posting this so it gets picked up by the Google bots. Pics from Prague coming soon. Thanks.
This just in from Scott Kovatch again: "updating to 10.5.1 will take care of it too. We now clean up the non-working versions of Java 6 during the update.". Thanks Scott.