This post has already been read 9189 times!
The recent 10.4.7 update switched the JDK to java 5.0. If you still need to use 1.4.2 for some reason, its still in there. Here is how you change it. It’s just a symlink in /System/Library/Frameworks/JavaVM.framework/Versions
chac:/System/Library/Frameworks/JavaVM.framework/Versions dillera$ ls -l
total 40
lrwxr-xr-x 1 root wheel 5 Jun 10 22:20 1.3 -> 1.3.1
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.3.1
lrwxr-xr-x 1 root wheel 5 Apr 18 09:31 1.4 -> 1.4.2
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.4.2
lrwxr-xr-x 1 root wheel 5 Jun 10 22:20 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.5.0
drwxr-xr-x 5 root wheel 170 Jun 27 19:23 A
lrwxr-xr-x 1 root wheel 1 Jun 10 22:20 Current -> A
lrwxr-xr-x 1 root wheel 5 Jun 10 22:20 CurrentJDK -> 1.5.0
chac:/System/Library/Frameworks/JavaVM.framework/Versions dillera$ sudo rm CurrentJDK
chac:/System/Library/Frameworks/JavaVM.framework/Versions dillera$ sudo ln -s 1.4.2 CurrentJDK
chac:/System/Library/Frameworks/JavaVM.framework/Versions dillera$ ls -l
total 40
lrwxr-xr-x 1 root wheel 5 Jun 10 22:20 1.3 -> 1.3.1
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.3.1
lrwxr-xr-x 1 root wheel 5 Apr 18 09:31 1.4 -> 1.4.2
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.4.2
lrwxr-xr-x 1 root wheel 5 Jun 10 22:20 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Apr 18 09:31 1.5.0
drwxr-xr-x 5 root wheel 170 Jun 27 19:23 A
lrwxr-xr-x 1 root wheel 1 Jun 10 22:20 Current -> A
lrwxr-xr-x 1 root wheel 5 Jun 28 10:55 CurrentJDK -> 1.4.2
Now it’s all better.
Mac OSX Hints actually has a little script that lets you do this on the fly, in case you’d need to switch back and forth.
Switch JDK’s