修改eclipse启动时eclipse使用的jre
2015-07-21 13:47
169 查看
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的配置文件里增加-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
相关文章推荐
- 【SSH异常系列】关于SSH中连接数溢出问题的解决方法
- java基础 this 关键字!
- 在Ubuntu15.04下安装eclipse
- lambda表达式的应用例子和JavaSE 8特性
- Java调用存储过程时报 The user specified as a definer ('root'@'%') does not exist 解决方法...
- Java调用存储过程时报 The user specified as a definer ('root'@'%') does not exist 解决方法
- java生成word
- ActionBarSherlock(一)在Eclipse中如何引入ActionBarSherlock和其Demo
- JAVA SOCKET的I/O 使用
- Java事件处理机制和适配器
- springmvc框架的搭建步骤
- Java GC系列
- spring4 -- web项目指引
- Struts2.3.24框架入门之一环境配置及入门实例HelloWorld
- SpringMVC拦截器
- spring4 -- 基于jdbcTemplate的分页
- spring4 -- JdbcTemplate数据库操作
- springMVC详细配置+Mysql+jdbcTemplate实现分页功能
- dubbo接口address从diamond获取按spring的BeanPostProcessor代理实现
- java.lang.String小测试