android-blogs

如何在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

 

 

 


官方推荐解法....把自己的SDK路径放到系统变量path的最前面

分类:

技术点:

相关文章:

  • 2021-12-24
  • 2021-12-04
  • 2021-12-04
  • 2022-01-18
  • 2021-11-28
  • 2022-01-02
  • 2021-12-25
猜你喜欢
  • 2021-12-03
  • 2021-11-23
  • 2021-07-17
  • 2022-02-03
  • 2021-11-26
相关资源
相似解决方案