I\'m compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this:
Windows-->preferences-->installed jres--> jdk1.7.xx p
Though the question is about the error with Eclipse
setup but thought an answer of fixing this error with IntelliJ
and Windows 10 setup may also be helpful here.
1. Go to File
--> Settings
--> Build, Execution, Deployment
--> Build Tools
--> Maven
--> Importing
2. Set JDK
for Importer
as shown below to JAVA_HOME
Also JAVA_HOME
should be set to JDK
path at Environment Variables --> System variables and also add %JAVA_HOME%\bin
to Path System variables