How to use the command update-alternatives --config java

后端 未结 8 1698
北恋
北恋 2020-11-28 22:05

I am installing Apache Solr on Linux Debian (Squeeze). I have been instructed to install sun-java jdk 1st. Then am told that I should use the command sudo update-alter

8条回答
  •  清酒与你
    2020-11-28 23:05

    You will notice a big change when selecting options if you type in "java -version" after doing so. So if you run update-alternatives --config java and select option 3, you will be using the Sun implementation.
    Also, with regards to auto vs manual mode, making a selection should take it out of auto mode per this page stating:

    When using the --config option, alternatives will list all of the choices for the link group of which given name is the master link. You will then be prompted for which of the choices to use for the link group. Once you make a change, the link group will no longer be in auto mode. You will need to use the --auto option in order to return to the automatic state.

    And I believe auto mode is set when you install the first/only JRE/JDK.

提交回复
热议问题