Ubuntu 18.10 安装JDK11 方法过程 apt-get update apt-get upgrade apt install openjdk-11-jre-headless //上面对应的是jdk11 apt install default-jre apt install openjdk-8-jre-headless