1,由于Java的环境变量配置错误,导致用到Java的编译过程中出现错误:
改正办法:
wget http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gzmkdir -p /usr/javatar xf jdk-8u181-linux-x64.tar.gz -C /usr/javacat >> /etc/profile << EOFexport JAVA_HOME=/usr/java/jdk1.8.0_181export JRE_HOME=\${JAVA_HOME}/jreexport CLASSPATH=.:\${JAVA_HOME}/lib:\${JRE_HOME}/libexport PATH=\${JAVA_HOME}/bin:\$PATHEOFsource /etc/profile
此时再次执行Java的命令 :