Maven in Eclipse complains that “Unable to locate the Javac Compiler” whenever POM changed

后端 未结 12 796
后悔当初
后悔当初 2020-12-05 07:25

I got error message every time I changed my pom.xml in eclipse.

Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to ex         


        
12条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 07:54

    It looks like your JAVA_HOME is not set properly. Can you echo JAVA_HOME from your terminal & see where it is pointing to? From the above error log it looks like its pointing to program files folder.

提交回复
热议问题