出现An internal error occurred during: "Building workspace".的解决方法

来源:互联网 发布:2013年工业企业数据库 编辑:程序博客网 时间:2024/05/17 07:21
一、当在eclipse中的web工程中增加了extjs4,出现An internal error occurred during: "Building workspace".

Java heap space 错误。

解决办法:导入ExtJS包,这样会卡死eclipse的。去到工程根目录下,找到.project,用记事本打开,把两处删除掉:

 第一处:
 <buildCommand>
         <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
         <arguments>
         </arguments>
</buildCommand>
第二处:
 <nature>org.eclipse.wst.jsdt.core.jsNature</nature>


二、MyEclipse内存溢出问题(an internal error occurred during building workspace)

网上搜了一下,据说是内存溢出问题。可以通过修改myeclipse.ini文件解决,一例如下。

优化之后的ini文件内容:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile

-vm
C:\java\1.6\bin

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


0 0
原创粉丝点击