1. 程式人生 > >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勾選去除.