Eclipse is running in a JRE, but a JDK is require错误解析

来源:互联网 发布:马士兵java视频教程27 编辑:程序博客网 时间:2024/06/06 04:19

这是因为在Eclipse.ini配置中没有指定-vm参数,修改如下重启Eclipse问题就解决了:

eclipse.ini 写道:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-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\bin\javaw.exe

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
0 0
原创粉丝点击