Ubuntu安装Java JDK8

sudo apt-get update

sudo apt-get install openjdk-8-jdk

java -version

点赞