MyEclipse 报错:'Building workspace' has encountered a problem解决方法
每次MyEclipse运行 工作空间报错如下:'Building workspace' has encountered a problem.
Errors occurred during the build.并且详细信息为:Errors occurred during the
build.
Errors running builder 'DeploymentBuilder' on project 'bos'.
java.lang.NullPointerException 意思是说在部署XXX工程时出现了空指针,
Errors running builder 'DeploymentBuilder' on project 'bos'.
java.lang.NullPointerException 意思是说在部署XXX工程时出现了空指针,
图片如下:
此问题一般发生在Myeclipse 保存文件并自动部署时候。
Errors occurred during the build.
Errors running builder 'DeploymentBuilder' on project'项目名'.
java.lang.NullPointerException
有一种产生此错误的原因是因为此项目不是由myeclipse创建的。
所以你需要检查.project 文件。
并且添加com.genuitec.eclipse.j2eedt.core.webnature
1、首先关闭MyEclipse工作空间。
2、然后删除工作空间下的
“E:/Workspaces/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”
取消myeclipse的自动部署:
右键点击项目 ->properties -> Builders,将DeploymentBuilder勾选去除.
(重新打开MyEclipse)
本文原创,转载必追究版权。