---
title: "eclipse 项目错误 build.properties does not exist 无法正常关闭服务"
author: "zc-111"
date: "2012-06-13T21:46:44Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-build-properties-does-not-exist"
draft: false
lastmod: "2012-06-14T13:54:06Z"
id: 1560292
url: "https://juck.iteye.com/blog/1560292"
---

今天在做项目的时候，eclipse总是出【build.properties does not exist】的错误，并且开启服务后，不到3分钟就提示内存溢出。点击关闭服务也无法关掉。重新换了eclipse,问题依旧出现，所以应该是项目本身的问题。

解决方法：

将项目下的.project文件打开。删除下面标注处代码
（它会引用build.properties，但是build.properties压根就不存在，一直引用，直到爆缸为止。

```java
<?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>
```

<span style="color:red">
<debug模式下，如果问题还存在，那么一般就是你在调用方法的时候参数类型传递有错误，仔细检查代码></span>