安裝Spring Tool Suite(STS)並打開後有很是多的錯誤

部分錯誤列表以下:spring

An internal error occurred during: "Initializing Spring UAA".eclipse

Error instantiating adapter factory for "org.eclipse.core.resources.IResource" declared by...maven

Unable to execute early startup code for an extension.ide

Unhandled Exception.ui

Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".spa

An error occurred while automatiocally activating bundle com.vmware.vfabric.ide.eclipse....code

Could not create the view:Plug-in "org.springframework.ide.eclipse.ui" was unable to instantiate class "org.springframework.ide.eclipse.ui.navigator.SpringNavigator".ip

..................it

嘗試過的解決方案:io

1.在"STS.ini" 中前兩行加上「-clean」 and "-refresh", also "mvn clean install" and "mvn eclipse:clean eclipse:eclipse",而後重啓STS   --No use

2.找到本地maven repository而且重命名爲"older_repository",而後重啓STS   --No use

3.刪除已安裝的STS,而且刪除maven repository文件,而後重裝STS-》打開-》設置Maven User Settings-》重啓-》打開   --OK

   --說明只要電腦上裝過STS,對應的maven repository文件就會保留,那麼以前的setting就會應用到新裝的STS上,若是出現問題,須要刪除老的repository文件並重裝哦。

原本覺得全部問題都解決了,因而Import一個project,結果在點擊Finish的時候彈出以下對話框:

  1. 果斷點擊複選框而且點擊「Next」,等着下載進度。。結果點了半天都木有反應,因而放棄了。
  2. 因而點擊「Help」-》「Check for Updates」,選中全部能夠更新的複選框,而後等着下載進度。。
  3. 等下載完,從新Import剛剛的Project,結果,能夠正常導入,全部的紅色錯誤也都消失了。
相關文章
相關標籤/搜索