`
cooliufang
  • 浏览: 127647 次
社区版块
存档分类
最新评论

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

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...
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics