Running other versions of java on OSX

Sorry if this is like SuperUser. I just deleted it there :)

I run this command on OSX

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -version

and the answer

java version "1.6.0_17 "

Is there a way to run an old version of Java without loading to a temporary location?

OSX 10.6.2.

+3
source share
2 answers

Only Java 6 is available in Snow Leopard. The JavaVM framework has links for 1.4 and 1.5, but both of these links point to "CurrentJDK", which in turn points to 1.6, so even if you call executable files javain the 1.5 directory, you you still get the 1.6 (Java 6) executable.

(32-) Java 5, , .

+4
/System/Library/Frameworks/JavaVM.framework/Versions

. Current , , , ( )

+1

Source: https://habr.com/ru/post/1726720/


All Articles