首页 > 代码库 > Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project '项目名'

Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project '项目名'

问题描述:

Errors occurred during the build. Errors running builder ‘DeploymentBuilder‘ on project ‘myf‘. java.lang.NullPointerException

问题分析:

此问题一般发生在Myeclipse 保存文件并自动部署时候。本人在写项目的时候,还没等部署好,关闭了了myeclipse 10,结果出现了这种情况。有一种产生此错误的原因是因为此项目不不是由myeclipse创建的,需要检查.project 文件,并且添加com.genuitec.eclipse.j2eedt.core.webnature。

解决方法:

1、首先关闭MyEclipse工作空间。
2、然后删除工作空间下的“/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs

取消myeclipse的自动部署:
右键点击项目 ->properties -> Builders,将DeploymentBuilder勾选去除.

Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project '项目名'