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:
-
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
-
Delete your .eclipse directory in your home directory. Launch eclipse. If that doesn't work,
-
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:
- cd .metadata/.plugins
- mv org.eclipse.core.resources org.eclipse.core.resources.bak
- Start eclipse. (It should show an error message or an empty workspace because no project is found.)
- Close all open editors tabs.
- Exit eclipse.
- rm -rf org.eclipse.core.resources (Delete the newly created directory.)
- mv org.eclipse.core.resources.bak/ org.eclipse.core.resources (Restore the original directory.)
- 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.
支付宝扫一扫捐赠
微信公众号: 共鸣圈
欢迎讨论,邮件: 924948$qq.com 请把$改成@
QQ群:263132197
QQ: 924948