在eclipse.ini中为eclipse指定jdk启动

http://blog.sina.com.cn/s/blog_028f0c1c0100klzj.html


机器上装了好几个版本的jdk,要用指定的jdk启动eclipse,只需修改eclipse.ini文件即可。
参考:
-vm
C:/jdk1.6.0_18/bin/javaw.exe
   (//-- 注:放第一行)
--launcher.XXMaxPermSize
256m
-vmargs
-Xms128m
-Xmx512m
其中红色的两行为指定的jdk启动地址,注意:javaw.exe使用的是bin里的。
运行eclipse时,报如下错误:Version 1.3.1_01 of the JVM is not suitable for this product.Version 1.5 or greater is required.时也可以使用该配置来解决。

猜你喜欢

转载自panyongzheng.iteye.com/blog/1677795