Documentation/Tutorials/Java6OSX10.5

Java 6 Update 4 Target For OSX 10.5

The very recent update of Java 6 for OSX 10.5 has some problems with the Java Preferences tool. These changes do not have any effect therefore the symlinks need to be done manually.

Once the update had happened it changed the Java 6 SDK target back to Java 5 SDK and had to be changed back manually.

cd /System/Library/Frameworks/JavaVM.framework/Versions/
rm CurrentJDK
ln -s 1.6 CurrentJDK

Restart terminal then run the java version check to confirm it's back to 1.6

javac -version

Should be

javac 1.6.0_13

And then

java -version

Should be

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)