The Syncing Apple An Exploration of Technology and Devices

28Jun/061

OSX 10.4.7 and JDKs

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.

Filed under: Mac Leave a comment
Comments (1) Trackbacks (0)
  1. 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


Leave a comment

No trackbacks yet.