Reputation: 69787
Sorry if this seems like it's for SuperUser. I just deleted it there :)
I am running this command on OSX
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -version
and the response is
java version "1.6.0_17
"
Is there any way to really run an older version of Java without downloading to a makeshift location?
OSX 10.6.2.
Upvotes: 3
Views: 212
Reputation: 411340
Only Java 6 is available on Snow Leopard. The JavaVM framework has links for 1.4 and 1.5, but both of those links point to "CurrentJDK", which in turn points to 1.6, so even if you invoke the java
executables in the 1.5 directory, you still get the 1.6 (Java 6) executable.
If you really need (32-bit) Java 5, you can get it by following these instructions.
Upvotes: 4
Reputation: 272417
/System/Library/Frameworks/JavaVM.framework/Versions
can contain multiple versions. The symlink Current
will point to the preferred, but you can choose which one to run just by specifying the path (as you've done above)
Upvotes: 1