计算机软件Eclipse The Maven Integration requires that Eclipse be running in aJDK
问题描述:
解决方案:
方案一、
若在Eclipse启动时,出现上图中的情况解决方法:
1:打开eclipse
If you can’t find any JDK on the list -> click ‘Add’-> 'Standard VM’ -> set all paths andclick ‘Finish’.
After that – check this JDK on the list of installed JREs and click‘OK’.refer to the image below:
2:在eclipse的安装目录中找到eclipse.ini文件编辑这个文件
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.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_23\bin
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
黑色粗体部分就是需要添加的内容
注意:添加-vm后就需要另起一行,并且-vm一定要在-vmargs这个参数的上面。
方案二、
在目标处,把原先的位置:"D:\ProgramFiles\eclipse\eclipse.exe"
改为:"D:\ProgramFiles\eclipse\eclipse.exe" -vm "D:\ProgramFiles\Java\jdk1.6.0_23\bin\javaw"