`

Maven出现以下问题:The Maven Integration requires that Eclipse be running in a JDK, bec

    博客分类:
  • java
 
阅读更多

转:http://blog.csdn.net/GodoorSun/article/details/6573559

修改eclipse目录下的eclipse.ini文件

从原先的

 

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx384m

 

修改到

 

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222

-product

org.eclipse.epp.package.java.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

256M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vm

D:/Program Files/Java/jdk1.6.0_24/bin/javaw.exe

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx384m

 

 

-vm

D:/Program Files/Java/jdk1.6.0_24/bin/javaw.exe

放置的位置应该放在上述位置,放在其他位置很可能有问题,导致启动还是有问题。

 

btw,换行后路径的空格无所谓。

 

以及根据Maven的提示:

 

参照参考文献的设置

    We need to change the installed JRE's in Eclipse preferences
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics