前提
系统环境:ubuntu:16.04
安装
sudo apt-get install openjdk-8-jre openjdk-8-jdk
查看安装路径
dpkg -L openjdk-8-jdk