eclipse在启动的时候,和环境变量中的jdk不兼容,可以单独制定eclipse运行的jre。

方法:

在eclipse的配置文件里增加-vm参数即可。

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

 eclipse.ini配置文件:

 -startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
D:/partA/Java64bit/jre7/bin/server/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

相关文章:

  • 2022-02-15
  • 2021-11-18
  • 2021-11-12
  • 2021-10-21
  • 2021-11-18
  • 2021-11-13
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-06
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
相关资源
相似解决方案