ubuntu20.04中,安装jdk,配置环境变量
下载jdkhttps://www.oracle.com/java/technologies/downloads/创建目录sudo mkdir /usr/lib/jvm解压缩到该目录sudo tar -zxvf jdk-7u60-linux-x64.gz -C /usr/lib/jvm修改环境变量sudo vim ~/.bashrc#set oracle jdk environmentexport JAVA_HOME=/usr/lib/jvm/jdk1.8.0_201exp..