转载网易博客huangbingliang@yeah的文章 http://blog.163.com/huangbingliang@yeah/blog/static/9416139920108248234532/
在Eclipse-Window-Preferences-Java-Installed JREs下添加JDK路径,添加后在已安装的jre中勾选新加的JDK,如果经常提示内存耗尽
将eclipse.ini内容替换为以下代码
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
-XX:PermSize=128M
-XX:MaxPermSize=128M
-XX:+UseParallelGC
-Xverify:none