WARNING Unable to auto-detect javac path using javac from environment

When starting Maven, I get this output:

[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.

How to fix it?

+4
source share
4 answers

You will see this error message when Maven starts up using the JRE (Java Runtime Environment), which is a truncated version of Java that can only execute Java code, but cannot compile sources.

To fix this warning, install the Source Development Kit (SDK) and set the environment variable JAVA_HOMEfor the newly installed version of Java.

.mavenrc, ; Maven Java.

+10

Maven Eclipse (, Run As: Maven Install), , JRE ( JDK, JRE). → → Java → JRE. JDK, , JDK, .

+4

JAVA_HOME MyComputer → Environment Variable

0

Right click on project -> Properties -> Java Compiler uncheck ...,

0

All Articles