修改eclipse启动时eclipse使用的jre
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
總結
以上是生活随笔為你收集整理的修改eclipse启动时eclipse使用的jre的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Shell与ShellScript
- 下一篇: 皇后问题