码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse解决方案之"Eclipse is running in a JRE, but a JDK is required"

时间:2015-10-05 23:20:23      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:

Open the eclipse folder and edit the eclipse.ini file:
 
Please check if the file has the -vm parameter, if not, then add it.
 
-vm
C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe
 
Note: It should be add before the -vmargs parameter.
 
See my eclipse.ini, just like the following:
-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
C:\Program Files (x86)\Java\jdk1.6.0_17\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m

Please pay attention to the bold and red characters. 

I hope it will be helpful to you! Enjoy it!

Eclipse解决方案之"Eclipse is running in a JRE, but a JDK is required"

标签:

原文地址:http://www.cnblogs.com/meijl/p/4856383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!