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

前端 未结 2 1251
暖寄归人
暖寄归人 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: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.

提交回复
热议问题