Mac OS X - How to install Java

October 2016


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.


Explanations:
  • 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:

Related :

This document entitled « Mac OS X - How to install Java » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.