5

在 Eclipse 中启动运行时工作台时遇到问题。新的日食打开,但在“加载工作台”指令上崩溃。

我已经尝试了一些事情,即:

rm -r .metadata

或者

./eclipse -clean -clearPersistedState

我还尝试删除 .snap 文件,workbench.xmi 文件,我尝试卸载并重新安装 Eclipse,这没有帮助。

这是崩溃的日志:

!ENTRY org.eclipse.core.net 1 0 2013-11-03 21:44:52.276
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences

!ENTRY org.eclipse.ui.workbench 4 2 2013-11-03 21:44:54.013
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0 
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2551)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.eclipse.ui 4 4 2013-11-03 21:44:54.028
!MESSAGE Unhandled Exception

!ENTRY org.eclipse.equinox.p2.ui.sdk.scheduler 4 0 2013-11-03 21:44:54.030
!MESSAGE Unable to execute early startup code for an extension
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2551)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

有人有解决这个特定问题的方法吗?我因为找不到解决方案而变得疯狂。

否则,我可能不得不格式化并重新安装所有东西?

如果能帮上忙,谢谢各位!

4

3 回答 3

4

搞砸了所有的eclipse文件和东西之后,我找到了解决方案:

我不得不使用一个不在当前工作空间的父文件夹中的新工作空间,解释:

旧工作区:

somefolder/parentfolder/workspace/

parentfolder/ 中的每个工作区都已损坏,因此每次我在此文件夹中尝试新工作区时,它都不起作用

通过使用这种工作空间,问题不再存在:

somefolder/workspace

如果发生这种情况,我给你的建议是:不要只使用父文件夹来尝试工作区,还要使用完全随机的其他文件夹。

希望这对处于相同位置的其他人有所帮助。

于 2013-11-05T10:24:21.597 回答
3

我遇到了同样的错误。我能够使用它运行它,./eclipse -clean -clearPersistedState但随后又出现“无法在目录中锁定”的另一个错误,这通过授予 777 对 eclipse 文件夹及其内容的权限得到解决。

于 2014-07-01T23:10:27.677 回答
0

这对我有用。

cd /Applications/adt-bundle-mac-x86_64-20140702/eclipse/Eclipse.app/Contents/MacOS

然后在里面你会看到两个文件eclipseeclipse.ini.

你想运行这个命令./eclipse -clean -clearPersistedState

Eclipse 将启动,构建您的工作区,然后重新启动。然后一切都很好。好走!

于 2016-10-07T05:54:38.170 回答