失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > The Maven Integration requires that Eclipse be running in a JDK……

The Maven Integration requires that Eclipse be running in a JDK……

时间:2020-03-19 19:52:05

相关推荐

The Maven Integration requires that Eclipse be running in a JDK……

在eclipse中安装了m2eclipse(maven插件)在安装后,出现下列警告:The Maven Integration requires that Eclipse be running in a JDK

详见:

http://cloudcode.tk//11/the-maven-integration-requires-that-eclipse-be-running-in-a-jdk/

The fully error message that you might get is as follows:

The Maven Integration requires that Eclipse be running in a JDK, because a

number of Maven core plugins are using jars from the JDK.

Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify

that Installed JREs are also using JDK installs.

To solve this problem add a new option into your eclipse.ini (which is located in your Eclipse installation folder):

-vm C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe

It is important to have this line on the correct location, otherwise Eclipse will have no clue about this setting:

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256M

-vm

C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx512m

It has to be before the-vmargsargument.

如果觉得《The Maven Integration requires that Eclipse be running in a JDK……》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。