How to download and install prebuilt OpenJDK packages
JDK 9 & Later
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz
or .zip
archives.
As an example, the archives for JDK 11 may be found on jdk.java.net/11 and may be extracted on the command line using
$ tar xvf openjdk-11*_bin.tar.gz
or
$ unzip openjdk-11*_bin.zip
depending on the archive type.
JDK 8
Debian, Ubuntu, etc.
On the command line, type:
$ sudo apt-get install openjdk-8-jre
The openjdk-8-jre
package contains just the Java Runtime Environment. If you want to develop Java programs then please install the openjdk-8-jdk
package.
Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
On the command line, type:
$ su -c "yum install java-1.8.0-openjdk"
The java-1.8.0-openjdk
package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.8.0-openjdk-devel
package.
$:~/PlayOnLinux's virtual drives/FLS12/drive_c/windows/system32$ update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 auto mode 1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1101 manual mode 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode * 3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
- Log in to post comments