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

后端 未结 12 793
后悔当初
后悔当初 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 08:11

    Adding the following two lines at the very beginning of your eclipse.ini file should tell maven where to find JDK:

    -vm
    C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe

    or whatever path you installed JDK into.

提交回复
热议问题