Mark, hello.
> On 2015 Apr 13, at 09:54, Mark Taylor <[log in to unmask]> wrote:
>
> I can't tell if that's right or not, but the man page and link you
> provide refer to Apple's java, i.e. pre-date Apple's decision
> to ditch java as a standard part of the OS, so I don't know if
> that mechanism still works for Oracle java.
I hadn't noticed that. However it appears still to be the preferred route to find the JAVA_HOME value, and Oracle's installations seem to work with it. I'm not completely sure when I last updated the JDK on this current machine, but it was months rather than years ago, and from Oracle.
I currently get:
% /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
% ls -ld /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
drwxr-xr-x 3 root wheel 102 13 Jan 16:11 /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/
% /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
%
There is a Java system preference panel in the system (though it's a little weird, and I suspect written by Oracle rather than Apple). That lets you choose which of possibly multiple installed JDK you want to use, and I think that this tool is the command-line access to its settings.
My (dim) recollection is that Apple never really wanted to be the people distributing Java, but arranged with Sun that they would distribute Java instead of Sun so that they could tune the look-and-feel of the Java GUI elements more scrupulously than Sun was willing to do. I've little idea where the initiative came from, to return that distribution to Oracle.
I'm happy to do any required experiments...
See you,
Norman
--
Norman Gray : http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
----
Starlink User Support list
For list configuration, including subscribing to and unsubscribing from the list, see
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK
|