Mac OS X - How to install Java

In this tutorial you will learn how to install Java on the last version of Mac OS X. There are several methods:

Using the terminal

  • Open a Terminal.
  • Type "java".
  • The following message will be displayed.
  • No Java runtime present, Requesting install
  • The installation starts normally.

  • Apple doesn't offer Java pre-installed on its devices. By launching this "false" executable, you will trigger the installation of Java.

Note that:
  • To check which version of Java is installed on your Mac, open a terminal and type the following command:
  • java-version

A similar message will be displayed:
java version "1.6.0_33" 
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) Client VM (build 20.8-b03-424, mixed mode)

Installing a specific version of Java

If you want to install a different version of Java, you can just go get on official site.
For example, to install Java 7, go to the official download page:
Published by deri58. Latest update on October 13, 2014 at 11:26 AM by Jeff.
This document, titled "Mac OS X - How to install Java," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
MacOSX Mountain Lion - The new features
Unable to turn off iMac