Vista下使用eclipse 3.3启动时可能会碰到的crashed问题解决
我现在使用的是eclipse 3.3 for java 的那个
系统是vista,第一次普通权限 运行 eclipse.exe时没问题,但第二次开始,一打开就说crashed,只能使用管理员模式运行才OK
今天看了下eclipse目录下readme目录下的html
发现
Opening File Dialog crashes eclipse (Vista only)
On Vista, launching eclipse using -vmargs -Xmx[any size] can crash eclipse when the FileDialog is opened. The workaround is to use the default heap size, i.e. do not use the -Xmx VM args. See bug 188317 for details.
这个bug
所以只要把 eclipse.ini里面的-Xmx这行去掉就OK了
我猜测,普通权限运行eclipse时,-Xmx指定分配内存可能会因为权限不够而挂掉,相反用管理员身份就不会有问题