- If you still want to install and test the JDK or JRE on macOS 10.15, then this document covers what you will experience as you install the JDK or JRE. Eventually (as of January 2020), you will only be able to install and run Mac software distributed outside the Mac App store on macOS 10.15 systems that are notarized by Apple.
- Oracle Java 10 JRE script: The script below will download a disk image containing the latest version of the Java 10 JRE from Oracle and install the JRE using the installer package stored inside the downloaded disk image. How the script works: Verifies that the Mac is running a Java 10-compatible operating system.
JDK 9 & Later
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux areavailable on release-specific pages of jdk.java.net as .tar.gz
or.zip
archives.
So you just upgraded your Mac (probably to Yosemite) and now you are getting annoying browser errors that say “To view this web content you need to install the Java Runtime Environment.” More annoyingly, after clicking through to Oracle’s Java.com to “Download Java for Mac OS X”.
As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extractedon the command line using
$ tar xvfopenjdk-13*_bin.tar.gz
or
$ unzipopenjdk-13*_bin.zip
depending on the archive type.
JDK 8
Debian, Ubuntu,etc.
On the command line, type:
$ sudo apt-get installopenjdk-8-jre
The openjdk-8-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then please install the openjdk-8-jdk
package.
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.8.0-openjdk'
The java-1.8.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.8.0-openjdk-devel
package.
JDK 7
Debian, Ubuntu,etc.
On the command line, type:
Jre 6 For Mac
$ sudo apt-get installopenjdk-7-jre
The openjdk-7-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-7-jdk
package.
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.7.0-openjdk'
The java-1.7.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.7.0-openjdk-devel
package.
JDK 6
Debian, Ubuntu,etc.
Install Jre For Mac
On the command line, type:
$ sudo apt-get installopenjdk-6-jre
The openjdk-6-jre
package containsjust the Java Runtime Environment. If you want to develop Javaprograms then install the openjdk-6-jdk
package.
Fedora, OracleLinux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c 'yum installjava-1.6.0-openjdk'
The java-1.6.0-openjdk
packagecontains just the Java Runtime Environment. If you want to developJava programs then install the java-1.6.0-openjdk-devel
package.
Jre For Mac Sierra
BSD Port
Java 8 Jre For Mac
For a list of pointers to packages of the BSD Port forDragonFly BSD, FreeBSD, Mac OS X, NetBSD and OpenBSD, please seethe BSD porting Project's wikipage.