【Maven】Eclipse is running in a JRE, but a JDK is required
Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders.
-
First check eclipse is using JDK, not JRE; Window -> Preferences -> Java -> Installed JREs
-
Then configure file eclipse.ini See the solution I in blog: http://smallwildpig.iteye.com/blog/1752581
-
Others: make sure "JAVA_HOME" is configured correctly (maybe have more JDK, or the path is not correct)
-
eclipse shortcut Open Properites -> Target, modify: "D:\Program Files\eclipse\eclipse.exe" -vm "D:\Program Files\Java\jdk1.6.0_37\bin\javaw.exe"
Restart eclipse...