Eclipse 莫名其妙自動退出

風的王子發表於2013-08-12

Posted March 15th, 2012 in Razno by Metod

If your eclipse crashed and refuses to start, saying something along the lines of: Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown, then try the following.

  1. $ rm -rf YOUR_PROJECT_DIR/.metadata/.plugins/org.eclipse.core.resources

Start eclipse. However, all your projects will be gone.

You can import them via File -> Import -> Existing Projects into Workspace; then select the directory where you had your projects.

EDIT: I just found a better way. (source)

  1. $ rm YOUR_PROJECT_DIR/.metadata/.plugins/org.eclipse.core.resources/.snap

This way you do not need to reimport your projects.

ANOTHER WAY:

As IGx89 suggested in the comments, you can also try the following:

  1. $ rm YOUR_PROJECT_DIR/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

http://stackoverflow.com/questions/11310970/eclipse-juno-doesnt-start/12045547#12045547

根據以上資訊。可以斷定。移除賭贏的檔案即可解決eclipse無法開啟。並且不必丟失之前所有引入的工程,在一個一個的重新引用。

之前把.metadata 檔案刪除還要手動重新引入工程,現在可以完美解決。

Linux使用命令就解決rm搞定。windows手動刪除即可


相關文章