1.sudo apt-get install openjdk-8-jre
2.sudo apt-get install openjdk-8-jdk
3.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
4.安装ant
sudo apt-getinstall ant
5.默认路径
/usr/lib/jvm
下可以看到很多的jdk以及相应的openjdk
6---->写shell脚本
出现make:*** No Targets specified....
更新:apt-get update
apt-get install gcc build-essential