Simply relink "CurrentJDK" in /System/Library/Frameworks/JavaVM.framework/Versions to whatever version you need. Do not touch all the rest, /Library/Java/home will be properly linked automatically.
Dear Friends,
I got the same problem and find as shown below, from VersioTracker the coments to change and get the 1.5 as default. But, how to do it? I cann't finde the .profile ou even the .bash_profile. I've tried by the Java Preference but it didn't work!!!!
Thanks a lot!!!!!
(1) Modifying your system environment variables for Java, so that the 1.5 command-line tools and applications are found first. You do this by modifying your .profile or .bash_profile and adding these two lines: