debian下安装JDK
sudo apt-get install java-package 去oracle官网下载tar包 fakeroot make-jpkg ./下载的tar包,生成deb包 sudo dpkg -i 安装deb包
如果你还安装了openjdk,那么配置下java即可
sudo update-alternatives --config java
sudo update-alternatives --config javac
code ~/.profile
# export JAVA_HOME=/usr/lib/jvm/jdk-13 export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac)))) export PATH=$JAVA_HOME/bin:$PATH