📜  在 ubuntu 中安装 jdk - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:28.991000             🧑  作者: Mango

代码示例4
$ Java -version  $ sudo dpkg -i jdk-version.deb  $ ls /user/lib/jvm   $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-16.0.1/bin/java 1   $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-16.0.1/bin/javac 1  $ java -version   $ javac -version