Centos alternatives install java


















Post by TrevorH » Wed Jan 11, pm You probably also want to use alternatives to install javac. The Oracle jre does "Provides: jre" so you can have openoffice and Oracle jre installed without openjdk.

Post by asilchenko » Thu Jan 12, pm Do you mean use alternatives to install name javac for jdk and java for jre? Post by asilchenko » Thu Jan 12, pm Thanks. Thanks, Anna. Post by TrevorH » Thu Jan 12, pm [quote] Do you mean alternatives generally install "javac" name for jdk and "java" for jre? The java executable is supplied by both. Post by asilchenko » Thu Jan 12, pm Ok. Maybe I can try clarify my question.

My question was. Is it generally true that alternatives install "javac" name for jdk and "java" for jre? To do so;. The image above shows that there are two alternatives to this system. These choices are represented by numbers 1 Java 11 and 2 Java 8.

To change the default version, type the associated number in this case, 1 or 2 and press Enter. In the output, you can find the path for each Java package installed on the system. Then, open the. In this example, we use vim :.

For example, if we copy the installation path for Java 11 in the previous step, the added line in the text editor will be:. In case you need to remove any of the Java packages installed, use the yum remove command. Confirm the process by pressing y yes , and it will uninstall the package from CentOS , as in the image below:. We also covered changing the default version and setting the home environment variable.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks.

Podcast Making Agile work for data science. 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 alternatives version 1. How can I get a list like : alternatives --config java There are 2 programs which provide 'java'.

Improve this question. Anyhow, this shouldn't be tagged with java since it is entirely about wrangling the alternatives command. I don't run run alternatives --config java , because it requires user input. So what is your question? That's a documentation bug. Show 7 more comments. Active Oldest Votes. Improve this answer.



0コメント

  • 1000 / 1000