I can only see 1.6.0 (32 and 64bit) on the Java Preferences dialog, and I need it to run applications using Java 1.5.0
You can install the old Leopard version of Java 1.5.0, and it runs perfectly fine on Snow Leopard. Instructions are here.
Snow Leopard only has Java 1.6, but it is compatible with older Java versions, and you can even compile for older Java versions on the newest version, you just need to specify the option if you are using javac (add '-target 1.5').
For example, the Java in the 1.5.0 framework directory is really 1.6.0:
$ /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -version java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) Client VM (build 14.1-b02-90, mixed mode)
If you are trying to get an application to run and it is failing because it doesn't handle the Java versions correctly, so either contact the program vendor if able, or post some more information about the application to hopefully get it working.
I've updated my version to 1.6.0_20 yesterday and had to install it all over again.
This time I followed the instructions detailed here and worked perfectly:
- Download Java update 4
- Download Pacifist
- Delete links 1.5 and 1.5.0 on existing installation
- Use pacifist to extract those file in the default location
Detailed information in the link