两天前我升级到了最新的 Ubuntu 14.04。一切都运行正常,直到我尝试打开用于 Java 开发的 Eclipse。它显示了加载窗口,但程序从未加载。我从命令行启动了 Eclipse:
eclipse -consolelog
我收到以下输出:
!SESSION 2014-04-27 17:57:42.917 ----------------------------------------------- eclipse.buildId=debbuild java.version=1.7.0_51 java.vendor=Oracle Corporation BootLoader 常量:OS=linux、ARCH=x86、WS=gtk、NL=en_US 命令行参数:-os linux -ws gtk -arch x86 -consolelog
!ENTRY org.eclipse.ui 4 0 2014-04-27 17:57:49.167 !MESSAGE 无法创建编辑器 ID org.eclipse.jdt.ui.CompilationUnitEditor: 没有针对 id org.eclipse.jdt.ui.CompilationUnitEditor 的编辑器描述符 !STACK 1 org.eclipse.ui.PartInitException: 没有针对 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.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271) at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459) at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) 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:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl。在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 处在 java.lang.reflect.Method.invoke(Method.java:606) 处在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 处在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 处在 org.eclipse.equinox.launcher.Main.run(Main.java:1438) 处!SUBENTRY 1 org.eclipse.ui 4 0 2014-04-27 17:57:49.174 !MESSAGE 没有用于 id 的编辑器描述符org.eclipse.jdt.ui.CompilationUnitEditor
!ENTRY org.eclipse.ui 2 2 2014-04-27 17:57:49.416 !MESSAGE 忽略添加已注册的可保存项的尝试 !STACK 0 org.eclipse.core.runtime.AssertionFailedException: 未知可保存项:org.eclipse.ui.internal.DefaultSaveable@13b2f29 来自部分:org.eclipse.ui.internal.ErrorEditorPart@13b2f29 at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesList.java:187) at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList.java:116) at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesList.java:289) at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList.java:695) at org.eclipse.ui.internal.PartList.partOpened(PartList.java:234) at org.eclipse.ui.internal.PartList.access$0(PartList.java:210) at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:40) at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:375) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610) at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271) at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459) at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 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:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:606) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1438)
!ENTRY org.eclipse.ui 4 4 2014-04-27 17:57:49.586 !MESSAGE 无法创建视图:“org.eclipse.jdt.ui.JavadocView”。
!ENTRY org.eclipse.ui 4 4 2014-04-27 17:57:49.589 !MESSAGE 无法创建视图:“org.eclipse.jdt.ui.SourceView”。
!ENTRY org.eclipse.ui 2 2 2014-04-27 17:57:49.851 !MESSAGE Perspective Java 已制作成本地副本
过去两天我一直在互联网上搜索,我能找到的最好的方法是:删除“工作区”文件夹可以让 Eclipse 启动,但没有任何项目、插件或设置。
知道如何解决这个问题吗?
提前致谢。
答案1
答案取自评论
Eclipse 是从存储库安装的,我通过从其官方网站重新安装较新版本的 Eclipse 并重新配置我的工作区来解决了这个问题!
答案2
解决您的问题的方法是将“~/.eclipse”移动到另一个文件夹。
所以:
关闭 Eclipse
打开“终端”
键入以下命令:
mv ~/.eclipse somewhereYouWant
当我遇到这个问题时,我只是:
mv ~/.eclipse home/paladini/Downloads