java_info.sh
Name change
NOTE! On December 12, 2014, the name of the script was changed from java_check.sh to java_info.sh!
The old version isavailable, but will NOT be maintained! Get the new one instead. Thank you!
java_info.sh
resides on GitHub: https://github.com/Peter-Moller/java-info
java_info.sh
is a script that informs you about your java environment. I wrote it bacause of the many security problems with Java the latest years.
It is nessecary to understand that the Java Control Panel in Apple → System Preferences → Java only manages (incl. updates) the web browser Java plugin!! This Java (really a JRE) is located in /Library/Internet Plug-Ins/ and may be used for Java development, but you should not use it for that!
If you are going to develop Java yourself, with for instance Eclipse or Kojo, download a proper JDK (link below).
You store the script wherever you like and run it in the Terminal.app. A typical output looks like this:
|
You get the script here:
http://fileadmin.cs.lth.se/cs/Personal/Peter_Moller/scripts/java_info.sh
(See sha1-checksum below)
Then you need to set correct access right on it so you can run it:chmod 755 java_info.sh
The only option to the script is -u
that updates it to the latest version.
You can check to see if the Java plugin is enabled with the following command:defaults read ~/Library/Preferences/.GlobalPreferences com.apple.WebKit.JavaPlugInLastUsedTimestamp
It it is not enabled, you can enable it by going to this page:
http://www.java.com/en/download/testjava.jsp
“rtrouton” on the website DerFlounder has written a script that automatically updates this time stamp:
https://derflounder.wordpress.com/2013/03/16/automatically-enable-the-java-web-plug-ins-setting-in-safari-6-0-3-and-later/
You can get the lastest Java from Oracle at this address:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Java 6 can be fetched from Apple here:
http://support.apple.com/kb/DL1572
You can test Java in your web browser here:
http://www.java.com/en/download/testjava.jsp
sha1-checksum for java_info.sh: