Installing Java 1.6 by default on Mac OS X 10.5.8

How to set default Java 1.6 for MacBook Pro Intel Core 2 Duo with OS X 10.5.8? I installed the latest software update and dragged a 64-bit selection of Java SE 6 to the top of the Java Preferences application (and even rebooted), but still, at the command prompt, java -version answers:

java version "1.5.0_24"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_24-b02-357-9M3165)
Java HotSpot(TM) Client VM (build 1.5.0_24-149, mixed mode, sharing)

Any ideas?

+3
source share
2 answers

There is a symbolic link in /System/Library/Frameworks/JavaVM.framework

They point to a specific version in the Versions subfolder.

I sometimes came across these links.

AFAICT there is a current link that points to the current JRE and CurrentJDK.

, - . -, Java-configlet -, - .

, , . , .

+2

:

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
+2

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


All Articles