![]() WARNING using update-alternatives -config java will naturally work, but only for the java binary ( /usr/bin/java) while leaving the other binaries pointing to whatever the current JDK is (e.g., javac may still be pointing to the JDK 14) - this is something that is unlikely to cause happiness. While using update-java-alternatives -auto will simply pick the highest priority JDK (in the example above, JDK 15). OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode) OpenJDK Runtime Environment 18.9 (build 11.0.2+9) ![]() Once installed for the first time (or even subsequent times) it is best to use the update-java-alternatives command, with the name of the JDK one wants to activate given the above folder structure: You will also note that there is a new /usr/lib/jvm/.jdk-15.0.1.jinfo file, which lists all the binaries that come with the JDK and they all point to the right place. OpenJDK 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing) OpenJDK Runtime Environment (build 15.0.1+9-18) Press to keep the current choice, or type selection number: ![]() There are 3 choices for the alternative java (providing /usr/bin/java). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |