您的位置:首页 > 编程语言 > Java开发

(转)如何在eclipse的配置文件里指定jdk路径

2016-06-17 11:06 453 查看
本文转载自:http://songguoliang.iteye.com/blog/1752519

运行eclipse时报如下错误:

在eclipse的配置文件里指定jdk路径,只需在eclipse的配置文件里增加-vm参数即可。

打开eclipse目录下的eclipse.ini配置文件,增加-vm配置,需要注意的是该参数要加在-vmargs之前

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:/java/JDK/jre/bin/client/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m

欢迎加入2000人的技术交流千人群:101085864
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: