今天安装了eclipse-jee-galileo-win32 + jdk-1_5_0_20-windows-i586-p.exe
但是在安装完成后却出现了错误。我运行eclipsec.exe
提示信息:
Error occurred during initialization of VM
Could not reserve enough space for object heap
google 了一下,初步断定是内存方面的问题
于是决定修改配置文件
eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
将最后一行改为 -Xmx256m
保存后再次启动,就正常了。
http://dl.google.com/android/android-sdk-windows-1.5_r3.zip