Debain系统里安装JDK8

默认安装的都是JDK11,安装8需要如下配置,下面是我的测试机上的history

  11  echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/webupd8team-java.list
  12  echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee -a /etc/apt/sources.list.d/webupd8team-java.list
  13  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
  14  sudo apt-get update
  15  apt list |grep jdk-8
  16  apt-get install adoptopenjdk-8-hotspot

 

你可能感兴趣的:(ubuntu,linux,java)