我在Ubuntu 22.04中安装了maven,在执行mvn clean install
命令时出现以下错误:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
我的JAVA_HOME的值如下:
echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/bin/
我有点不明白,是否遗漏了什么?
谢谢!