编译rocketMQ dashboard '爆出'的错误
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
mvn clean package no java_home
JAVA_HOME=/home/haha/user/java/jdk1.8.0_162
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
export JAVA_HOME=/usr/local/jdk1.8.0_161
export JRE_HOME=/usr/local/jdk1.8.0_161/jre
export CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH
export RUN_AS_USER=root
5.运行source /etc/profile,使环境生效