Sudo alternatives -install /usr/bin/java java /opt/jdk-19/bin/java 1 sudo alternatives -install /usr/bin/java javac /opt/jdk-19/bin/javac 1 Manually add the new version of java to alternatives: First you install the specific version of OpenJDK, the same way you did before:Ĭurl -O tar xvf openjdk-19-ea+21_linux-圆4_ sudo mv jdk-19 /opt/ Imagine you have to use another version for a specific project. OpenJDK 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing) OpenJDK Runtime Environment (build 18.0.1.1+2-6) Il existe 1 programmes qui fournissent java.Įntrez pour garder la sélection courante ou saisissez le numéro de type de sélection :1 Now select the desired version of Java you want to use: Sudo alternatives -install /usr/bin/java java /opt/jdk-18.0.1.1/bin/java 99 sudo alternatives -install /usr/bin/javac java /opt/jdk-18.0.1.1/bin/javac 99 Alternatives creates, removes, maintains, and displays information about the symbolic links comprising the alternatives system Manually add the java setup to ‘alternatives’. ![]() ![]() Move the extracted folder to the /opt directory: At the time of writing this tutorial, the last LTS release of Java is 17.x and the last GA release is 18.x.įind the link to download the latest JDK on the Jdk18 Download page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |