ITeye博客

【Maven】Eclipse is running in a JRE, but a JDK is required

cooliufang · 2013-03-15 10:05 · Maven · Eclipse · 开源软件 · Eclipse · maven · Markdown

Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders.

  1. First check eclipse is using JDK, not JRE; Window -> Preferences -> Java -> Installed JREs

  2. Then configure file eclipse.ini See the solution I in blog: http://smallwildpig.iteye.com/blog/1752581

  3. Others: make sure "JAVA_HOME" is configured correctly (maybe have more JDK, or the path is not correct)

  4. 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...

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。