The following are the system requirements for installing the JDK and the JRE on macOS:. Any Intel-based computer running macOS. Administrator privileges.
You cannot install Java for a single user. Installing the JDK and JRE on macOS is performed on a systemwide basis for all users. Administrator privileges are required to install the JDK and JRE on macOS. When you install the JDK, it also installs the JRE.
The Java Runtime Environment (JRE) is a bundle developed and offered by Oracle Corporation which includes the Java Virtual Machine (JVM), class libraries, and other components necessary to run Java applications and applets.
However, the system will not replace the current JRE with a lower version. To determine the current JRE version installed on your system, see. To install an earlier version of the JRE, you must first uninstall the current version. When you install the JRE, you can install only one JRE on your system at a time. The system will not install a JRE that has an earlier version than the current version. To determine the current JRE version installed on your system, see. To install an earlier version of the JRE, you must first uninstall the current version.
Should I install the JRE or the JDK? If you only plan to run Java applications, then install the Java Runtime Environment (JRE). The JRE is also referred to as Oracle Java. After you have installed the JRE, you can start Java applets and applications by double-clicking JAR files, JNLP files, and by using the browser.
Note that 32-bit browsers, such as Firefox in 32-bit mode, and Chrome, are not supported by the JRE. If you also plan to create Java applications, then install the Java Development Kit (JDK). How do I clear the Java cache? Follow these steps:. From System Preferences, start the Java Control Panel from Other section by clicking the Java icon. From the Java Control Panel, on the General tab, go to Temporary Internet Files section and click Settings.
In the Temporary Files Settings window, click Delete File. From the Delete Files and Applications dialog box, select Cached Applications and Applets and click OK to clear those files from the cache. To clear the applet and Web Start cache from a window, use the following command (note escaped space character): $ rm -rf /Library/Application Support/Oracle/Java/Deployment/cache. How are Java updates managed on macOS? Every time you start a Java applet or a Java Web Start (JWS) application, the system starts your program and determines in the background (so that performance of your Java application is not affected) if it has checked for a Java update in the last 7 days. If an update is available, then the Software Update window appears. Select Next, and enter your user Name and Password.
The latest update gets downloaded and installed. Restart the browser and other applications to work on the new Java update. After installing Java for macOS 2012-006, can I continue to use Apple's Java 6 alongside the macOS JDK or JRE for Java 10? If you want to continue to develop with Java 6 using command-line, then you can modify the startup script for your favorite command environment. For bash, use this: $ export JAVAHOME=`/usr/libexec/javahome -v 1.6` Some applications use /usr/bin/java to call Java. After installing Java for macOS 2012-006, /usr/bin/java will find the newest JDK installed, and will use that for all of the Java-related command-line tools in /usr/bin. You may need to modify those applications to find Java 6, or contact the developer for a newer version of the application.
I am running Mountain Lion (macOS 10.8) or later and Gatekeeper is blocking an app from launching. What is going on? Gatekeeper, introduced in Mountain Lion (macOS 10.8), is designed to prevent potentially malicious application packages (apps) from starting. When you attempt to start an app that does not meet certain criteria, Gatekeeper will block it.
To override this, you can modify the Gatekeeper's default settings to App Store and identified developers from Settings, General, and Allow apps downloads from section. To create a Java application that will start without interruption under the default Gatekeeper settings, the app must be bundled with a JRE, use Oracle's launcher stub, and be signed with an Apple Developer ID.
For details on creating an app that satisfies these requirements, see Self-Contained Application Packaging for in the Java Platform, Standard Edition Deployment Guide. What happened to the Java Preferences app in Application Utilities? The Java Preferences app was part of the Apple Java installation and is not used by Oracle Java.
Therefore, macOS releases from Apple that do not include Apple Java will not include Java Preferences. One of the functions of Java Preferences was to set the current version of the JRE. Under Oracle Java, only a single version of the JRE can be installed at a time. To access the Java Control Panel, in the System Preferences panel, click the Java icon. If you don’t see the Java icon in the System Preferences, in the Other section, then you do not have an Oracle JRE installed.
If you have not yet installed Apple's Java macOS 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences application. There is an important difference about the installation of Oracle Java (both JRE and JDK) that you should be aware of. The Java Preferences application, started by selecting Applications and then Utilities, is part of Apple's implementation of Java. After Apple no longer distributes Java as part of their release, the Java Preferences application is retired. Under Apple's implementation of Java, it was possible to have multiple JREs installed. The Java Preferences application was used to determine the first compatible version that would be used. You can change the default JRE by starting Java Preferences and then dragging Java SE 10 to the top of the list.
Note:. The Java Preferences window contains a list of installed JREs. Java applications and command-line tools use the listed order to determine the first compatible version to use. The Vendor column indicates whether the Java release is supplied by Apple or Oracle. The Version column specifies the version of Java that is installed.
Reordering the list, by dragging Java SE 10 to the top, makes it the default version of Java. If you install only Oracle Java JRE 10, then it will not appear in this list.
You must install the full JDK for JRE 10 to be listed. Scripting on this page enhances content navigation, but does not change the content in any way.
Oracle's Java version 7u25 and below have been disabled by Apple on OS X. Updating to the latest release will allow Java to be run on Mac OS X. » » » » » » » » » » » » » » » » » » » » » » See information about. Yes, see the instructions on the Apple website. If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first.
See the instructions to. Operating system requirements: For Java 7 and later versions, you will need an Intel-based Mac running Mac OS X version 10.7.3 (Lion) and above.
Installing Java on a Mac is performed on a system wide basis, for all users, and administrator privileges are required. Java can not be installed on a per-user basis. Browser requirements: A 64-bit browser (Safari, for example) is required to run Oracle Java on Mac. For Java versions 6 and below, Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the feature (available on the Apple menu) to check that you have the most up-to-date version of Java 6 for your Mac.
For issues related to Apple Java 6 on Mac, contact Apple Support. Oracle and Java.com only support Java 7 and later, and only on 64 bit systems. Mac OS X and Apple Java 6 End of Life Apple has posted notice that Mac OS X 10.11 (El Capitan) will be the last OS X release that supports Java 6, and as such, recommends developers whose applications depend on Java 6 to migrate their apps to a newer Java version provided by Oracle. » (apple.com).
Chrome browser versions 42 and above. Starting with Chrome version 42, Chrome has disabled the standard way in which browsers support plugins. You can download Java from java.com. Mac OS X 10.6 and below: Apple's Java comes pre-installed with your Mac OS. Mac OS X 10.7 (Lion) and above: Java is not pre-installed with Mac OS X versions 10.7 and above. To get the latest Java from Oracle, you will need Mac OS X 10.7.3 and above. If you have Java 7 or later versions, you will see a Java icon under System Preferences.
Java versions 6 and below are listed in the Java Preferences.app located in the Applications Utilities folder on your 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 7 or later versions is not installed. 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. For earlier versions of Java, check the Apple Support site.
See See See For Java versions 6 and below, Apple supplies their own version of Java. Use the feature (available on the Apple menu) to check that you have the most up-to-date version of Apple's Java for your Mac. Users of Lion Mac OS X 10.7.1 and 10.7.2 should upgrade to 10.7.3 or later versions, so you can get the latest Java version from Oracle. Oracle highly discourages users from using older versions of Java. Installing old and supported 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. You can confirm that you have the latest version on the.
If installing an older version of Java is absolutely required, you must first uninstall the current version. See the instructions on the. Apple disables the Java plug-in and Webstart 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 Java Runtime depends on the availability of an Application programming interface (API).
Some of the API were added in Mac OS X 10.7.3. Apple has no plans to make those API available on older versions of the Mac OS. See During an auto-update, Mac OS X 10.9 (Mavericks) users might see the installation stall. Download the latest Java from the. Installing a JRE from Oracle does not update java -version symlinks or add java to your path. For this functionality, you must install the full JDK. Provide us details on for reporting issues or providing feedback for Java.