Installing and using Oracle Java on macOS


This article applies to:
  • Platform(s): macOS
  • Java version(s): 8.0

» How do I get Java for my Mac?

» What are the system requirements for Java on my Mac?

» How do I install Java for my Mac?

» How do I update Java on my Mac?

» How do I enable Java on my Mac?

» How do I uninstall Java from my Mac?

» How do I find out what version of Java I have on my Mac?

» How do I clear the Java cache on my Mac?

» Can I use Chrome with Oracle Java on my Mac?

» Why is Oracle Java available only for Mac OS X 10.7.3 and above?

» Can I install Java on Mac 10.10 (Yosemite)?

» Is it safe to install previous or older versions of Java?

» Why will applets not run after getting Java through Apple Software Update?

» The installation hangs during an auto-update, what can I do to get the latest Java?

» When I try to use Java from the command line, why doesn't it work?

» After I updated to Sierra, Yosemite or El Capitan, why am I told to install Java after I already installed the latest Java?

» How do I report issues related to Java?


How do I get Java for my Mac?
You can download Java from java.com.

What are the system requirements for Java on my Mac?
Please refer to Java SE 8 certified systems configurations page.

How do I install Java for my Mac?
See Mac Java installation instructions.

How do I update Java on my Mac?
See How to update Java on Mac.

How do I enable Java on my Mac?
When you install Oracle Java on your Mac (Lion and above), Java will be enabled by default.
If you are running a Java application in the browser, you will need to also check that Java is enabled in your browser.
For earlier versions of Java, check Apple support site.

How do I uninstall Java from my Mac?
See Mac Java uninstall instructions.

How do I find out what version of Java I have on my Mac?
Mac OS X 10.7.3 and above: Under System Preferences click on the Java icon to access the Java Control Panel which will list your Java version. If you do not see a Java icon under System Preferences, Java 8 or later versions is not installed.

How do I clear the Java cache on my Mac?
See How to clear the Java cache on Mac.

Can I use Chrome with Oracle Java on my Mac?
Starting with Chrome version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins.
More info

Why is Oracle Java available only for Mac OS X 10.7.3 and above?
The Java Runtime depends on the availability of an Application Programming Interface (API). Some of the APIs were added in Mac OS X 10.7.3. Apple has no plans to make those APIs available on older versions of the Mac OS.

Can I install Java on Mac OS X 10.10 (Yosemite)?
Yes. See Mac OS X 10.10 FAQ.

Is it safe to install previous or older versions of Java?
Oracle highly discourages users from using older versions of Java. Installing old and unsupported versions of Java on your system presents a serious security risk. Upgrading to the latest version of Java ensures that Java applications will run with the most up-to-date security and performance improvements on your system. If installing an older version of Java is absolutely required, you must first uninstall the current version. See the instructions at Mac uninstall Java FAQ.

Why will applets not run after getting Java through Apple Software Update?
Apple disables Java plug-in and Web Start applications when the Java update is done using Software Update. Also, if the Java plug-in detects that no applets have been run for an extended period of time it will again disable the Java plug-in.

The installation hangs during an auto-update, what can I do to get the latest Java?
During an auto-update, users might see the installation stall. Download latest Java 8 from java.com.

When I try to use java from the command line, why doesn't it work? I have Oracle's version of the JRE installed.
Installing JRE from Oracle does not update java -version symlinks or add java to your path. For this functionality, you must install the full JDK. See Mac command line info.

After I updated to macOS Sierra 10.12, El Capitan (OS X 10.11), or Yosemite (OS X 10.10), why am I told to install Java after I already installed the latest Java?
See information about Apple Java messages.

How do I report issues related to Java?
Provide us details at Feedback form for reporting issues related to Java.