Switching to Java 6 on OSX 10.5.8

zaggle

Registered
Hi

I cannot seem to activate Java 6 on my MacBook Pro (10.5.9) Core 2 duo

1. From the Java Preferences I have ordered

On Name CPU-Type Version
-------------------------------------------------
Y Java SE 6 64-bit 1.6.0_22-b04-307
Y J2SE 5.0 32-bit 1.5.0_26-b03
Y J2SE 5.0 64-bit 1.5.0_26-b03


2. This results (after reboot to be sure) in

% java -version
java version "1.5.0_26"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03-376-9M3263)

i.e. it does not pick up 1.6


3. Looking at the java version

% ls -al /usr/bin/java
lrwxr-xr-x 1 root wheel 74 27 Oct 14:39 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
n



4. Looking in the Frameworks area


% pwd
/System/Library/Frameworks/JavaVM.framework/Versions


% ls -al
total 64
drwxr-xr-x 14 root wheel 476 20 Dec 11:33 .
drwxr-xr-x 12 root wheel 408 23 Dec 15:08 ..
lrwxr-xr-x 1 root wheel 5 27 Oct 14:39 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 18 Jul 2008 1.3.1
lrwxr-xr-x 1 root wheel 5 4 Sep 2009 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 31 Jan 2009 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 31 Jan 2009 1.4.2
lrwxr-xr-x 1 root wheel 5 27 Oct 14:40 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 31 Jan 2009 1.5.0
lrwxr-xr-x 1 root wheel 5 27 Oct 14:39 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 59 27 Oct 14:39 1.6.0 -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
drwxr-xr-x 10 root wheel 340 27 Oct 14:40 A
lrwxr-xr-x 1 root wheel 1 27 Oct 14:40 Current -> A
lrwxr-xr-x 1 root wheel 3 27 Oct 14:39 CurrentJDK -> 1.5



5. Now java is pointing at

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java


and Current points to version "A" which is


% ls -al A
total 632
drwxr-xr-x 10 root wheel 340 27 Oct 14:40 .
drwxr-xr-x 14 root wheel 476 20 Dec 11:33 ..
lrwxr-xr-x 1 root wheel 28 27 Oct 14:40 CodeResources -> _CodeSignature/CodeResources
drwxr-xr-x 37 root wheel 1258 27 Oct 14:39 Commands
drwxr-xr-x 4 root wheel 136 1 Jul 2009 Frameworks
drwxr-xr-x 16 root wheel 544 4 Sep 2009 Headers
drwxr-xr-x 3 root wheel 102 13 Sep 09:47 JavaPluginCocoa.bundle
-rwxr-xr-x 1 root wheel 316992 2 Oct 02:58 JavaVM
drwxr-xr-x 33 root wheel 1122 27 Oct 14:40 Resources
drwxr-xr-x 3 root wheel 102 27 Oct 14:40 _CodeSignature


appears to be a full copy (not a symlink) version and does not change
as I move things around in Java Preferences

I have tried various fiddlings with the versions/symlinks to no avail.



Any ideas how I can get 1.6 to be active ? As far as I can tell the Core 2 duo machine is 64-bit
so the fact that it is aq 64-bit Java should not matter...


thanks
Zag
 
MOdifying the symlink so that

% ls -al
total 64
drwxr-xr-x 14 root wheel 476 5 Jan 10:03 .
drwxr-xr-x 12 root wheel 408 23 Dec 15:08 ..
lrwxr-xr-x 1 root wheel 5 27 Oct 14:39 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 18 Jul 2008 1.3.1
lrwxr-xr-x 1 root wheel 5 4 Sep 2009 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 31 Jan 2009 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 31 Jan 2009 1.4.2
lrwxr-xr-x 1 root wheel 5 27 Oct 14:40 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 31 Jan 2009 1.5.0
lrwxr-xr-x 1 root wheel 5 27 Oct 14:39 1.6 -> 1.6.0
lrwxr-xr-x 1 root wheel 59 27 Oct 14:39 1.6.0 -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
drwxr-xr-x 10 root wheel 340 27 Oct 14:40 A
lrwxr-xr-x 1 root wheel 1 27 Oct 14:40 Current -> A
lrwxr-xr-x 1 root wheel 5 5 Jan 10:03 CurrentJDK -> 1.6.0



i.e. CurrentJDK now points to 1.6.0 seems to have worked.

I am left with

1. not knowing what the link "Current" into "A" means
2. not knowing why dragging the order in the Java Preferences did not work

Zag
 
Back
Top