Default Java version in Mac 10.4.6 is 1.4, but is pre-loaded with 1.5. Just follow the below simple steps to change your Java version to 1.5:
Step 2. Move Java 1.5/5.0 to the first position/Select 1.5/5.0 from the drop down
Step 3. Save and Close
Step 2. Type cd /System/Library/Frameworks/JavaVM.framework/Versions/
Step 3. Type sudo ln -fhsv 1.5 CurrentJDK
Step 4. Open a new terminal
Step 5. Type java -version, you will see 1.5 as the current version
Enjoy!
P.S. You can follow the same instructions for changing to other versions too.
Changing Java Preferences
Step 1. Go to Finder->Utilities->Java and open Java PreferencesStep 2. Move Java 1.5/5.0 to the first position/Select 1.5/5.0 from the drop down
Step 3. Save and Close
Modify CurrentJDK
Step 1. Open TerminalStep 2. Type cd /System/Library/Frameworks/JavaVM.framework/Versions/
Step 3. Type sudo ln -fhsv 1.5 CurrentJDK
Step 4. Open a new terminal
Step 5. Type java -version, you will see 1.5 as the current version
Enjoy!
P.S. You can follow the same instructions for changing to other versions too.