How to find Java version on Mac

How to find Java version on Mac

Last updated: October 10, 2018 

You can find Java version on Mac without running a Java applet in your web browser. Fortunately, there are a variety of methods to find the Java version on Mac. Below is a description of some of those methods. Also see Java Support in Safari 12.

Using Command Line in Terminal

Terminal is a program included with macOS that provides command line access to the operating system. Terminal is located under Applications folder -> Utilities folder. To find the Java version using command line, launch the Terminal application. Type or copy/paste the following line into the Terminal window:

/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

The Java version will display as output in the Terminal window, and will look similar to the output below:

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

In this case, Java 8 Update 40 is the Java version installed on this Mac.



Using the Java Control Panel

You may find Java version on Mac using the Java Control Panel instead. For information about locating the Java Control Panel, please see the Where is the Mac Java Control Panel located article. Once you have launched the Java Control Panel, click the General tab.

find java version in mac

In the section entitled About, click the About… button. A new About Java window will launch. Java version information will display within the window.

find java version in mac

In this case, Java 8 Update 40 is the Java version installed on this Mac.

Using the Online Test Java Page

You may also test your Java online to determine which version of Java is installed on your Mac. To test Java on your Mac, visit the Test Java page provided by Oracle on its Java.com web site. This utility will not only check your current Java installation, but will also remove old Java versions from your computer that may pose a security threat to your system. If your Java is working correctly, and no out-of-date Java versions are found, you will see the following notification accompanied by information about your Java installation and your computer:

find java version in mac

As it states in the Verified Java Version web page, Java 8 Update 40 is installed on this Mac. If your Java is not working properly, the Test Java page displays additional configuration options that you may need to check, as well as download and installation instructions if needed.

Thank you for visiting Tech Help Knowledgebase to learn how to find Java version on Mac.