eclipse 项目错误 build.properties does not exist 无法正常关闭服务
今天在做项目的时候,eclipse总是出【build.properties does not exist】的错误,并且开启服务后,不到3分钟就提示内存溢出。点击关闭服务也无法关掉。重新换了eclipse,问题依旧出现,所以应该是项目本身的问题。
解决方法:
将项目下的.project文件打开。删除下面标注处代码 (它会引用build.properties,但是build.properties压根就不存在,一直引用,直到爆缸为止。
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ofbiz</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.codehaus.groovy.eclipse.groovyBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.codehaus.groovy.eclipse.groovyNature</nature>
<!--删除代码-->
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>