" Java 2 SE 5.0 Release 1 is available for the new Tiger OS (10.4). You can download it here...
http://www.apple.com/support/downloads/java2se50release1.html
As explained on the "About" page, "This update does not change the default version of Java on your Mac from Java 1.4.2 to J2SE 5.0... If you want to change the default Java version for applications and applets, use the new Java Preferences utility that is installed by the J2SE 5.0 update at /Applications/Utilities/Java/J2SE 5.0/."
Ref: http://docs.info.apple.com/article.html?artnum=301073
HOWEVER, this new Java Preferences utility appears to be for runtime settings only -- not compilation. In other words, it sets the VM, but not the JDK. So if you actually want to compile using Java 5.0 features, you need to perform some reconfiguration after installing 5.0. Here's how...
# Open Terminal.
# Because you're going to be modifying System information, you need to identify yourself as the administrator by typing: sudo su root
# Terminal will prompt for the admin password. Enter this.
# Change the current directory by typing: cd /System/Library/Frameworks/JavaVM.framework/Versions
# Within this directory, there is an alias called CurrentJDK. By default, it is aliasing the 1.4.2 directory. You need to remove this alias by typing: rm CurrentJDK
# Now you need to replace it with a new alias pointing to the 1.5.0 directory instead. Do this by typing: ln –s 1.5.0 CurrentJDK
# Finally, log out of the session as administrator by typing: exit
You're now ready for Tiger on Tiger!