The output should look like this, depending on the package you installed. Once you've chosen a Java package, install it. openjdk-13-jdk-headless/focal-updates 13.0.7+5-0ubuntu1~20.04 arm64 OpenJDK Development Kit (JDK) (headless) openjdk-13-jre/focal-updates 13.0.7+5-0ubuntu1~20.04 arm64 OpenJDK Java runtime, using Hotspot JIT openjdk-8-jdk-headless/focal-updates,focal-security 8u312-b07-0ubuntu1~20.04 arm64 OpenJDK Development Kit (JDK) (headless) openjdk-8-jre/focal-updates,focal-security 8u312-b07-0ubuntu1~20.04 arm64 OpenJDK Java runtime, using Hotspot JIT openjdk-8-jre-headless/focal-updates,focal-security 8u312-b07-0ubuntu1~20.04 arm64 OpenJDK Java runtime, using Hotspot JIT (headless) openjdk-8-jre-zero/focal-updates,focal-security 8u312-b07-0ubuntu1~20.04 arm64 Alternative JVM for OpenJDK, using Zero/Shark You need to choose one depending on which Java version you want, whether you want the JRE (for running applications) or JDK (for developing them), "normal" (for interactive Java apps) or "headless" (for running on a server with no user interactivity), etc. The package list displayed will look like the below. Perform a search for the OpenJDK packages that are available. ![]() Make sure that the repository library is up to date. ![]() Extract the contents of the archive to a directory of your choice: tar -xf java-1.8.0-openjdk-portable-1.8.0. ![]() To install Java on an Ubuntu Linux system: Select the latest version of OpenJDK 8 from the Version drop-down list, and then download the JDK archive for Linux to your local system.
0 Comments
Leave a Reply. |