1. 程式人生 > >eclipse出現"Building workspace". Java heap space

eclipse出現"Building workspace". Java heap space

eclipse在引入量比較大的js檔案後,出現錯誤An internal error occurred during: "Building workspace". Java heap space。導致eclipse提示錯誤,並且無法Building workspace。

解決辦法,關掉js檔案的Validator驗證。

進入工程程式碼所在目錄,編輯.project檔案,去掉以下兩處程式碼:

<buildCommand>

         <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>

         <arguments>

         </arguments>

</buildCommand>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

儲存檔案。然後重啟eclipse解決問題。