查找并确认jdk路径
[root@localhost updates]# which jdk /usr/bin/which: no jdk in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/bin/jdk1.8/bin:/root/bin:/usr/local/bin/jdk1.8/bin:/usr/local/maven/bin) [root@localhost updates]# cd /usr/local/bin/jdk1.8/ [root@localhost jdk1.8]# ls bin COPYRIGHT include javafx-src.zip jre lib LICENSE man README.html release src.zip THIRDPARTYLICENSEREADME-JAVAFX.txt THIRDPARTYLICENSEREADME.txt [root@localhost jdk1.8]#