怎麼在eclipse的配置文件裏指定jdk路徑

如何在eclipse的配置文件裏指定jdk路徑

  運行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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章