java 未能打开编辑器,Eclipse:无法打开编辑器:没有id org.eclipse.jdt.ui.CompilationUnitEditor的编辑器描述符...

When I updated Eclipse using "Help -> Check for Updates" I got a problem.

If I try to start Eclipse, Eclipse opens but show a error message like this:

Could not open the editor: No editor descriptor

for id org.eclipse.jdt.ui.CompilationUnitEditor

And inside "Details" of the error, I have the following description:

org.eclipse.ui.PartInitException: No editor descriptor for id org.eclipse.jdt.ui.CompilationUnitEditor

at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:601)

at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)

at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)

at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)

at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)

at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)

at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)

at org.eclipse.ui.internal.PartStack.handleDeferredEvents(PartStack.java:1213)

at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)

at org.eclipse.ui.internal.PartSashContainer.handleDeferredEvents(PartSashContainer.java:1409)

at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)

at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1495)

at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1485)

at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1459)

at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1514)

at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61)

at org.eclipse.ui.internal.PartStack.close(PartStack.java:537)

at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206)

at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:120)

at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:83)

at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:269)

at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:278)

at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)

at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:71)

at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:631)

at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:206)

at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1598)

at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:261)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)

at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

What can I do to solve this problem? I don't do anything, I just update Eclipse from their own "Check for Updates".

解决方案

As you can see here, a workaround for your problem is just move the "~/.eclipse" to another folder.

So:

Close Eclipse

Open "Terminal"

Type the following command:

e.g.:

mv ~/.eclipse somewhereYouWant

When I got this problem, I just:

mv ~/.eclipse home/paladini/Downloads

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值