1. 程式人生 > >啟動eclipse,工程導致啟動失敗

啟動eclipse,工程導致啟動失敗

 
檢視工程下日誌,發現報錯,資訊如下: !ENTRY org.eclipse.oomph.ui 2 0 2016-12-12 09:24:16.730 !MESSAGE Widget is disposed !STACK 0 org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:4533) at org.eclipse.swt.SWT.error(SWT.java:4448) at org.eclipse.swt.SWT.error(SWT.java:4419) at org.eclipse.swt.widgets.Widget.error(Widget.java:482) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:354) at org.eclipse.swt.widgets.Control.computeSize(Control.java:660) at org.eclipse.ui.part.PageBook$PageBookLayout.computeSize(PageBook.java:51) at org.eclipse.swt.widgets.Composite.computeSizeInPixels(Composite.java:238) at org.eclipse.swt.widgets.Control.computeSize(Control.java:663) at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1383) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1390) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1368) at org.eclipse.swt.widgets.Composite.layout(Composite.java:725) at org.eclipse.oomph.internal.ui.UIPropertyTester$3$1.run(UIPropertyTester.java:108) at org.eclipse.oomph.ui.UIUtil$5.run(UIUtil.java:541) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4203) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3819) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519) 查閱外國網站,發現類似情況,找到解決方案:

建立eclipse快捷方式,然後開啟屬性,在快捷方式的目標後增加  -clean -clearPersistedState 然後啟動-解決,後面正常啟動eclipse就可以了。