![]() Next, add the Java installer repository with the following command: add-apt-repository ppa:linuxuprising/java Gpg: key EA8CACC073C3DB2A: public key "Launchpad PPA for Linux Uprising" imported You should get the following output: Executing: /tmp/apt-key-gpghome.jK1m3NXGgW/gpg.1.sh -keyserver -recv-keys EA8CACC073C3DB2A Next, import and sign the key with the following command: apt-key adv -keyserver -recv-keys EA8CACC073C3DB2A Next, install the required dependencies in your system with the following command: apt-get install software-properties-common gnupg2 -y Next, copy the downloaded file to that directory: cp jdk-11.0.8_linux-圆4_ /var/cache/oracle-jdk11-installer-local/ Next, create a directory for Java installation: mkdir -p /var/cache/oracle-jdk11-installer-local Select the jdk-11.0.8_linux-圆4_ package for Linux and download it on your system. You should see the page that shows the available versions: ![]() In this case, we will install Java SE 11 LTS as shown below: So you will need to create an Oracle account and download your desired version of Java from the Oracle website.įirst, Log in and visit the Oracle Downloads page and locate your desired version of Java. By default, the Oracle Java is not included in the Debian 10 repository. You can use it only for personal or development use. Oracle Java is a commercial version Java with some additional features. OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.265-b01, mixed mode) OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_265-b01) You should get the following output: openjdk version "1.8.0_265" Once the repository is added, update the repository and install the Java 8 with the following command: apt-get update -yĪpt-get install adoptopenjdk-8-hotspot -y Next, add the Java 8 repository using the following command: add-apt-repository -yes Next, download and add the GPG key with the following command: wget -qO - | apt-key add. You will need to add the Java repository in your system.įirst, install the required dependencies using the following command: apt-get install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common -y If you want to install only Java Runtime Environment ( JRE), run the following command: apt-get install default-jre -y Install Java 8 On Debian 10īy default, Java 8 is not included in the Debian 10 default repository. OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Debian-1deb10u1, mixed mode, sharing) OpenJDK Runtime Environment (build 11.0.8+10-post-Debian-1deb10u1) You should get the following output: openjdk version "11.0.8" Once the installation has been completed successfully, you can verify the Java version using the following command: java -version You can install it by just running the following command: apt-get update -y By default, it is available in the Debian 10 default repository. A root password is set up in your server.Īt the time of writing this tutorial, the OpenJDK 11 is the long term support (LTS) version of Java.How to Install Oracle Java 11 on Debian 10.In this tutorial, we will learn the following: You can use Oracle Java for non-commercial use like personal use and development use. ![]() ![]() The OpenJDK is a free version of Java while the Oracle Java has a few additional commercial features. There are two major implementations of Java OpenJDK and Oracle Java. It is very popular for its robust features including, Secure, Distributed, Multithreaded, Portable and Platform independent. Java is a free, open-source and one of the most widely used Object Oriented Programming language developed by Sun Microsystems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |