📜  在 linux 上安装 java - Shell-Bash 代码示例

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

代码示例1
# install default JDK
sudo apt install default-jdk
# install default JRE
sudo apt install default-jre
# install specific JDK version
sudo apt install openjdk-17-jdk
# install specific JRE version
sudo apt install openjdk-17-jre