11/1/2023 0 Comments Update alternatives java![]() To check everything is setup correctly then: $ which javac If there is only a single alternative for javac you will get a message saying so, otherwise select the option for the new JDK. Install the alternative for javac $ sudo update-alternatives -install /usr/bin/javac javac /opt/java/jdk1.8.0_144/bin/javac 1Ĭheck / update the alternatives config: $ sudo update-alternatives -config javac Solution 2Īssuming one has installed a JDK in /opt/java/jdk1.8.0_144 then: You will need to use the -auto option in order to returnĪnd I believe auto mode is set when you install the first/only JRE/JDK. Once you make a change, the link group will no longer be inĪuto mode. Will then be prompted for which of the choices to use for the link ![]() When using the -config option, alternatives will list all of theĬhoices for the link group of which given name is the master link. So if you run update-alternatives -config java and select option 3, you will be using the Sun implementation.Īlso, with regards to auto vs manual mode, making a selection should take it out of auto mode per this page stating: You will notice a big change when selecting options if you type in "java -version" after doing so.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |