Eclipse hangs on loading workbench, eclipse停在启动界面的处理办法

http://stackoverflow.com/questions/8972034/eclipse-hangs-on-loading-workbench

解答一:

In most cases, rm workspace/.metadata/.lock works for me. Make sure to start eclipse using ./eclipse -clean -refresh whatever you try. Thanks for teaching us mv .eclipse .eclipse.old, which did not help today. Today it helped to delete workspace/.metadata/.plugins/. All Plugins actually did work after that. Some settings gone. You can then use Import... to import all your existing projects at once. Deleting workspace/.metadata is the last choice, but works. You can keep workspace/.metadata/.mylyn if you don't want to loose your tasks.

DISCLAIMER: THIS WILL DELETE ALL OF YOUR ECLIPSE WORKSPACE SETTINGS AND YOU WILL HAVE TO RE-IMPORT ALL YOUR PROJECTS, THERE ARE LESS DESTRUCTIVE ANSWERS HERE

Try the following:

  1. Delete the .metadata folder in your local workspace (this is what worked for me). It seems that it contains a .LOCK file that if not properly closed, prevents eclipse from starting properly. On Unix based systems you can type following on command line;

    rm -r workspace/.metadata
    
  2. Delete your .eclipse directory in your home directory. Launch eclipse. If that doesn't work,

  3. Open eclipse under another user account. If it loads, you know the problem is with your account, not your eclipse installation.

 

解答二:

The procedure shown at http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/ worked for me:

  1. cd .metadata/.plugins
  2. mv org.eclipse.core.resources org.eclipse.core.resources.bak
  3. Start eclipse. (It should show an error message or an empty workspace because no project is found.)
  4. Close all open editors tabs.
  5. Exit eclipse.
  6. rm -rf org.eclipse.core.resources (Delete the newly created directory.)
  7. mv org.eclipse.core.resources.bak/ org.eclipse.core.resources (Restore the original directory.)
  8. Start eclipse and start working. :-)

In other answers:

eclipse -clean -clearPersistedState

is mentioned - which seems to have the same or even better effect.

 

解答三:

./eclipse -clean -refresh

as mentioned in comment by sulai Dec 20 '12 at 12:46, that worked for me.

 

 

 

posted @ 2016-01-19 10:00  微信公众号--共鸣圈  阅读(584)  评论(0编辑  收藏  举报