我安装了三个JDK,这些都是我从事的某些项目所必需的。
运行时,sudo update-alternatives --config java
我得到输出:
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1074 auto mode
1 /usr/lib/jvm/java-6-oracle/jre/bin/java 1073 manual mode
2 /usr/lib/jvm/java-7-oracle/jre/bin/java 1074 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 manual mode
如何将选项3(JDK 8)设置为在自动模式下选择的选项?