Eclipse Kepler 在加载工作台时自动退出并出现错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18630845/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:09:29  来源:igfitidea点击:

Eclipse Kepler auto exit on loading workbench with error

eclipseeclipse-kepler

提问by Sonrobby

When i start eclipse, on splash loading window, eclise auto exit with error:

当我启动 eclipse 时,在启动加载窗口中,eclise 自动退出并出现错误:

        !SESSION 2013-09-05 14:52:04.771 -----------------------------------------------
    eclipse.buildId=4.3.0.I20130605-2000
    java.version=1.7.0_25
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.jee.product
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

    !ENTRY org.eclipse.ui.workbench 4 2 2013-09-05 14:52:09.260
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper.getService(ServiceHelper.java:74)
        at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.updateRoamingProfile(SimpleProfileRegistry.java:156)
        at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.updateSelfProfile(SimpleProfileRegistry.java:147)
        at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfileMap(SimpleProfileRegistry.java:344)
        at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.internalGetProfile(SimpleProfileRegistry.java:248)
        at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfile(SimpleProfileRegistry.java:178)
        at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:88)
        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.run(Workbench.java:2552)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

    !ENTRY org.eclipse.ui.workbench 4 2 2013-09-05 14:52:09.264
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.java:354)
        at org.eclipse.core.runtime.Plugin.getLog(Plugin.java:291)
        at org.eclipse.ui.internal.WorkbenchPlugin.log(WorkbenchPlugin.java:830)
        at org.eclipse.ui.statushandlers.StatusManager.logError(StatusManager.java:285)
        at org.eclipse.ui.statushandlers.StatusManager.handle(StatusManager.java:200)
        at org.eclipse.ui.internal.progress.ProgressManager.done(ProgressManager.java:467)
        at org.eclipse.core.internal.jobs.JobListeners.notify(JobListeners.java:39)
        at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:96)
        at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:152)
        at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:647)
        at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:70)

    !ENTRY org.eclipse.core.jobs 4 2 2013-09-05 14:52:09.267
    !MESSAGE An internal error occurred during: "Workbench early startup".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.java:354)
        at org.eclipse.core.runtime.Plugin.getLog(Plugin.java:291)
        at org.eclipse.ui.internal.WorkbenchPlugin.log(WorkbenchPlugin.java:818)
        at org.eclipse.ui.internal.EarlyStartupRunnable.handleException(EarlyStartupRunnable.java:81)
        at org.eclipse.core.runtime.SafeRunner.handleException(SafeRunner.java:75)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:44)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:2552)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

I've tried:

我试过了:

  • deleting workspace/.metadata/.lock
  • delete the file WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap
  • 删除工作区/.metadata/.lock
  • 删除文件 WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap

But didn't solve this problem.

但是没有解决这个问题。

回答by Sonrobby

Solved when I delete ".\workspace.metadata.plugins\org.eclipse.e4.workbench"folder. Follow this

当我删除".\workspace.metadata.plugins\org.eclipse.e4.workbench"文件夹时解决了。按照这个

Thanks all.

谢谢大家。

回答by thSoft

Try to start with an empty workspace or a fresh Eclipse installation. If they work, you can reimport the contents of your workspace and transfer the installed plugins (File > Export... > Installed Software Items, then Import).

尝试从空工作区或全新 Eclipse 安装开始。如果它们有效,您可以重新导入工作区的内容并传输已安装的插件(文件 > 导出... > 已安装的软件项目,然后导入)。

回答by Torsten Hein

Just do this

就这样做

rm -fr /worksapce/.metadata/.plugins/or.eclipse.e4.workbench/workbench.xmi

and then restart eclipse.

然后重启eclipse。

回答by Rachit Jain

Navigate to your Java Workspace Folder --> .metadata --> .plugins --> org.eclipse.e4.workbench.... delete this folder.. it works for me, hopefully it will also work for you.

导航到您的 Java 工作区文件夹 --> .metadata --> .plugins --> org.eclipse.e4.workbench.... 删除此文件夹...它对我有用,希望它也对你有用。

回答by Sumit Singh

e4has command line options if you use the command line option -clearPersistedStatethen the user changes will be deleted.

e4具有命令行选项,如果您使用命令行选项,-clearPersistedState则用户更改将被删除。

回答by Sundeep Vilasagarapu

  • Step 1: Goto cd /opt/eclipse/
  • Step 2: then vim eclipse.ini
  • Step 3: Add this line at the end of the file
    "-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false"
  • Step 4: ./eclipse
  • 第 1 步:转到 cd /opt/eclipse/
  • 第二步:然后vim eclipse.ini
  • 第 3 步:在文件
    -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false”的末尾添加这一行
  • 第 4 步:./eclipse

Try the above 4 steps. Issue will be resolved for eclipse in linux environment

尝试以上4个步骤。linux环境下eclipse的问题将得到解决