![]() ![]() Openjdk-11-doc/bionic-updates,bionic-updates,bionic-security,bionic-security 10.0.2+13-1ubuntu0.18.04.2 all ![]() Let’s explore which other packages we have at our disposal besides the default jdk package: $ apt list openjdk-11* Listing. Let’s have a look at the “Depends” section of the output. We can see that if we inspect the package: $ apt show openjdk-11-jdk It’s also worth noting that although the package is called openjdk-11-jdk, as of this writing, it actually installs version 10.0.2. Now we should see the same version number as shown above: javac 1.8.0_181 3.2. Let’s check that the javac executable is available as well: $ javac -version OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) The result should list a Runtime Environment and a JVM: openjdk version "1.8.0_181" Now, let’s verify the installation: $ java -version Let’s install OpenJDK 8 from the “Main” repository with apt: $ sudo apt update It’s supported by Canonical - the same company that maintains Ubuntu itself. The “Main” repository is available by default on all Ubuntu systems. Of course, we can also head to the OpenJDK website, grab a package there, and install it the same way we’ve seen in the previous section.īut using the apt tooling and the “Main” repository provides some benefits. ![]() For this reason, we can find an up-to-date version of OpenJDK 8 in the “Main” repository on most of the supported Ubuntu versions. JDK 8 is an LTS version that has been around for a while. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |