当前位置: 代码迷 >> Eclipse >> Eclipse is running in a JRE, but a JDK is required异常的解决
  详细解决方案

Eclipse is running in a JRE, but a JDK is required异常的解决

热度:387   发布时间:2016-04-23 02:19:07.0
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/
  相关解决方案