views:

795

answers:

3

Hi,

I need Java5 (not 6), but Snow Leopard comes with only Java6. There is /System/Library/Frameworks/JavaVM.framework/Versions/1.5, but that just points to 1.6.0:

 $ ls -la /System/Library/Frameworks/JavaVM.framework/Versions/
 lrwxr-xr-x   1 root  wheel    5 Sep 24 20:12 1.3 -> 1.3.1
 drwxr-xr-x   3 root  wheel  102 Jul 21 07:35 1.3.1
 lrwxr-xr-x   1 root  wheel   10 Sep 24 20:12 1.5 -> CurrentJDK
 lrwxr-xr-x   1 root  wheel   10 Sep 24 20:12 1.5.0 -> CurrentJDK
 lrwxr-xr-x   1 root  wheel    5 Sep 24 20:12 1.6 -> 1.6.0
 drwxr-xr-x   7 root  wheel  238 Sep 24 20:12 1.6.0
 drwxr-xr-x   8 root  wheel  272 Sep 24 20:12 A
 lrwxr-xr-x   1 root  wheel    1 Sep 24 20:12 Current -> A
 lrwxr-xr-x   1 root  wheel    3 Sep 24 20:12 CurrentJDK -> 1.6

Can I install the real 1.5 from somewhere?

+1  A: 

Hmm, i do not have installed 10.6 yet (it is on the way), but the versions directory looks strange. Where is 1.4? And no version should point to CurrentJDK! My 10.5 installation is the following:

r2d2:~ arne$ ls -l /System/Library/Frameworks/JavaVM.framework/Versions 
total 56
lrwxr-xr-x  1 root  wheel    5 16 Sep 19:14 1.3 -> 1.3.1
drwxr-xr-x  3 root  wheel  102 14 Jan  2008 1.3.1
lrwxr-xr-x  1 root  wheel    5 16 Sep 19:14 1.4 -> 1.4.2
lrwxr-xr-x  1 root  wheel    3 21 Feb  2008 1.4.1 -> 1.4
drwxr-xr-x  8 root  wheel  272 21 Feb  2008 1.4.2
lrwxr-xr-x  1 root  wheel    5 16 Sep 19:14 1.5 -> 1.5.0
drwxr-xr-x  8 root  wheel  272 21 Feb  2008 1.5.0
lrwxr-xr-x  1 root  wheel    5 16 Sep 19:14 1.6 -> 1.6.0
drwxr-xr-x  8 root  wheel  272 26 Sep  2008 1.6.0
drwxr-xr-x  8 root  wheel  272 16 Sep 19:14 A
lrwxr-xr-x  1 root  wheel    1 16 Sep 19:14 Current -> A
lrwxr-xr-x  1 root  wheel    3 16 Sep 19:14 CurrentJDK -> 1.5
r2d2:~ arne$

Do other 10.6 users have the same problem? I am not shure about installing the Java 5 package for 10.5 will work on 10.6. Someone have experience?

Arne Burmeister
+4  A: 

Here is a link to downgrading Snow Leopard to Java 1.5

David Sykes
What this seems to say is that you can copy the Java5 installation from Leopard (10.5) and it will work with Snow Leopard as well.
Thilo
@Thilo Yes, we have done that successfully here.
David Sykes
We had to do that too.
FarmBoy
I follow the instructions, but I couldn't complete the last step because the JDK5 doesn't appear as an option in the java preferences.I tried to install a new JRE in eclipse but Eclipse complains:"Standard VM not supported on MacOS"Any ideas ?
Dani Cricco
A: 

I've put together a small how-to here.

mhnagaoka
That link is dead. :(
Skinniest Man