How to properly upgrade Java
I have installed and updated to the latest Version of Java.
I am running OS X 10.11.6 (15G31) on iMac.
The Java Control panel shows the correct version and shows the link as:
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
Executing:
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.8.0_101"
Shows the correct version.
However, executing:
java -version
java version "1.8.0_45"
shows an old version.
Executing:
whereis java
/usr/bin/java
Shows the link as /usr/bin/java
Yet trying to replace the soft link fails:
sudo ln -fs /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin/java
ln: /usr/bin/java: Operation not permitted
Even when using:
sudo bash (ie as root)
Any ideas?
Thanks
-jim