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