Eclipse is running in a JRE, but a JDK is required错误的解决

在eclipse目录下eclipse.ini,添加如下两行,注意这行要加在-vmargs之前,

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


----------------------------
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

http://liguoliang.com/2010/eclipse-is-running-in-a-jre-but-a-jdk-is-required/

你可能感兴趣的:(java,eclipse,jdk,C++,c)