Setting Java Version on Leopard
Today I learned something new about Leopard. On the command line, my default JDK was 1.5. I was about to edit a symlink under /System/Library/Frameworks/JavaVM.framework/Versions to change to 1.6, but instead learned about the Java Preferences app.
In Spotlight, find “Java Preferences” and launch it. Or, find it directly under Applications/Utilities/Java. It looks like this:
Just drag and drop to rearrange items in the lists. The JDK at the top of the list becomes your default.
While this worked, Ant still used the old Java 1.5. I fixed this by adding a line to ~/.bash_profile: