The Maven Integration requires that Eclipse be running in a JDK

The Maven Integration requires that Eclipse be running in a JDK_第1张图片

若在Eclipse启动时,出现上图中的情况解决方法:

1:打开eclipse     Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.

    

If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.

After that – check this JDK on the list of installed JREs and click ‘OK’.

 

2:在eclipse的安装目录中找到eclipse.ini文件编辑这个文件

 

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
D:\Java\jdk1.5.0_08\bin

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

 

黑色粗体部分就是需要添加的内容

注意:添加-vm后就需要另起一行,并且-vm一定要在-vmargs这个参数的上面。


你可能感兴趣的:(maven)