![]() ![]() Originally, this was a convenience utility, written in Perl, from the Debian Linux project, called update-alternatives. * 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.7_5. openjdk-10.0.1linux-圆 update alternatives update-alternatives -install /usr/bin/java java /usr/lib/java10/jdk-10.0.1/bin/java 20000. The alternatives command began its life as, interestingly, an alternative. To set another default version, rerun the sudo update-alternatives -config java command. + 1 java-1.7.0-openjdk.x86_64 (/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el7_5.x86_64/jre/bin/java) Ansible Install Java 117+10-post-Ubuntu-3ubuntu1, mixed mode. sudo update-alternatives -config java sudo update-alternatives -config javac sudo update-alternatives -config javadoc. There are 2 programs which provide 'java'. How can I get a list like : # alternatives -config java Those errors are harmless because you're using a JRE the missing commands are provided by JDKs only. This may be freely redistributed under the terms of the GNU Public License.Ĭommon options: -verbose -test -help -usage -version -keep-missingįor the moment I create my own list with /etc/alternatives, but I'm not satisfied. I would like to get the list of all alternatives for java versions, choose one and set it in a script, but option -list doesn't not work as expected: alternatives -list javaĪlternatives version 1.7.4 - Copyright (C) 2001 Red Hat, Inc. ![]()
0 Comments
Leave a Reply. |