Newbie on debian and trying to make Java 7 the default java version used

前端 未结 2 1235
暖寄归人
暖寄归人 2021-01-02 00:13

2 questions.

  1. After installing the Oracle Java 7 on my new Debian local box, I opened up a terminal and executed the following command:

java -ver

相关标签:
2条回答
  • 2021-01-02 00:49

    sudo update-java-alternatives -s ... will configure all the alternatives at the same time update-java-alternatives -l lists the alternatives

    0 讨论(0)
  • 2021-01-02 00:53

    sudo update-alternatives --config java

    Is the command to swap it i believe.

    You can then call

    which java

    and it should reference the version selected.

    0 讨论(0)
提交回复
热议问题