OpenJDK Runtime Environment (build 17.0.2+8-86) $ echo $JAVA_HOME /opt/jdk-17Ĭheck the installed version of Java. echo 'export JAVA_HOME=/opt/jdk-17' | sudo tee /etc/profile.d/java17.shĮcho 'export PATH=$JAVA_HOME/bin:$PATH'|sudo tee -a /etc/profile.d/java17.sh Then move the extracted file to the /opt/ directory as shown. # Linux 64-bit #Įxtract the downloaded tarball. Since the OpenJDK versions available in the default repositories are not up to date, we will have to download the Open-source JDK 17 using the wget command. Java OpenJDK 17 is an open-source implementation of the Java SE platform. sudo apt updateįor JRE run the following commands to install sudo apt install openjdk-17-jreĬheck Java version to validate a successful installation: $ java -version The easiest and quickest way is installation OpenJDK 17 on Ubuntu 22.04|20.04|18.04 from OS upstream repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |