3/19/2023 0 Comments Install openjdk 11 debian 9![]() Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode) Setting up default Java Version # Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Accept it to continue installation.Ĭheck the installed version by running the following command: java -version You will be prompted to accept and agree for the Oracle license. Next, run the below command to install package: sudo apt install oracle-java11-installer ![]() Once the repository is added and enabled, update the packages list index: sudo apt update Now you need to enable repositories after importing the PPA public key by following commands: sudo apt-key adv -keyserver hkp://:80 -recv-keys 73C3DB2AĮcho ‘deb bionic main’ | sudo tee /etc/apt//linuxuprising-java.list Here we are going to install Java 11.įollow the below steps to install Java from Oracle:Īt first, we install the necessary packages using below command: sudo apt install dirmngr gnupg So before going to install it read the Oracle JDK License. Oracle provides license permits only non-commercial use, for personal use and development use only. So we can install it using below command: sudo apt install openjdk-11-jdk Installing Java From Oracle # sudo apt install openjdk-jdkįor example, latest stable version is OpenJDK 11. You just have to add version as per below syntax. You can install OpenJDK with your specified version. Once it is enabled you need to update package manager and then go ahead for install. Echo 'deb stretch-backports main' | sudo tee /etc/apt//stretch-backports.list
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |