The solution for "Eclipse is running in a JRE, but a JDK is required"

Open the eclipse folder and access the eclipse.ini file:
Before changing it ,you will find it don’t have the -vm parameter,so 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 this:
 1 -startup
 2 plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
 3 –launcher.library
 4 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
 5 -product
 6 org.eclipse.epp.package.jee.product
 7 –launcher.defaultAction
 8 openFile
 9 –launcher.XXMaxPermSize
10 256M
11 -showsplash
12 org.eclipse.platform
13 –launcher.XXMaxPermSize
14 256m
15 –launcher.defaultAction
16 openFile
17 -vm
18 C:\Program Files (x86)\Java\jdk1.6.0_17\bin\javaw.exe
19 -vmargs
20 -Dosgi.requiredJavaVersion=1.5
21 -Dhelp.lucene.tokenizer=standard
22 -Xms40m
23 -Xmx512m

 

Wish to be helpful to you!

Enjoy it!

 

posted on 2012-11-03 21:26 Alicus 阅读(245) 评论(0)  编辑  收藏 所属分类: Tools


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年11月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

导航

统计

常用链接

留言簿

随笔分类

随笔档案

文章分类

相册

Organization

Personal

搜索

最新评论

阅读排行榜

评论排行榜