在 eclipse.ini 文件中添加
[color=red]-vm
%JAVA_HOME%\bin\javaw.exe[/color]
如:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
com.springsource.sts.ide
--launcher.XXMaxPermSize
256M
[color=red]-vm
D:\Program Files\Java\jdk1.6.0_13\bin\javaw.exe[/color]
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dfile.encoding=UTF-8
[color=red]-vm
%JAVA_HOME%\bin\javaw.exe[/color]
如:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
com.springsource.sts.ide
--launcher.XXMaxPermSize
256M
[color=red]-vm
D:\Program Files\Java\jdk1.6.0_13\bin\javaw.exe[/color]
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dfile.encoding=UTF-8