Java 我的 eclipse luna 无法启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25598594/
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-08-11 00:44:24  来源:igfitidea点击:

My eclipse luna won't start up

javaeclipse

提问by Akira Hora

So this basically this happens either when: -I install the e(fx)clipse plugin into eclipse and then restart eclipse -I copy the eclipse folder onto a network and put the folder on another computer to use the eclipse.

所以这基本上会在以下情况下发生: -我将 e(fx)clipse 插件安装到 eclipse 中,然后重新启动 eclipse -我将 eclipse 文件夹复制到网络上并将该文件夹放在另一台计算机上以使用 eclipse。

Currently I am facing the second one. Can you guys teach me how to read an eclipse log file? Also, please tell me on what I have to do with this.

目前我面临的是第二个。你们能教我如何阅读日食日志文件吗?另外,请告诉我这与我有什么关系。

My remedy is always get the base eclipse luna zip and then plug in for e(fx)clipse. Then hope that on my next start up it won't die on me.

我的补救方法是始终获取基础 eclipse luna zip,然后插入 e(fx)clipse。然后希望在我下次启动时它不会死在我身上。

LOG FILE

日志文件

org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity="org.eclipse.core.runtime"; type="osgi.bundle"; version:Version="3.10.0.v20140318-2214"; singleton:="true" [id=51] STARTED!SESSION 2014-09-01 11:27:12.399 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.standard.product

!ENTRY org.eclipse.equinox.ds 2 0 2014-09-01 11:28:13.706
!MESSAGE [SCR - WorkThread] Timeout occurred! Thread was blocked on processing [QueuedJob] WorkPerformer: org.eclipse.equinox.internal.ds.SCRManager@ccdee4; actionType 1

!ENTRY org.eclipse.equinox.ds 2 0 2014-09-01 11:28:14.096
!MESSAGE [SCR] Enabling components of bundle org.eclipse.ui.trace did not complete in 30000 ms 

!ENTRY org.eclipse.fx.ide.java6 4 0 2014-09-01 11:28:14.221
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.fx.ide.java6 [296]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version>=1.3)(!(version>=1.8)))"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.core.runtime 4 0 2014-09-01 11:28:19.274
!MESSAGE FrameworkEvent ERROR
!STACK 0 [STARTED]
    at org.eclipse.osgi.container.Module.lockStateChange(Module.java:329)
    at org.eclipse.osgi.container.Module.start(Module.java:389)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

回答by Fredrik

A google of your error message lead to this Eclipse bugand this one. Both were solved by starting on a new workspace. If you have selected to not have have workspace dialog appear on startup, use the -data <workspace>argument when starting eclipse.

您的错误消息的 google 导致此 Eclipse 错误错误。两者都通过在新工作区开始解决。如果您选择在启动时不显示工作区对话框,请-data <workspace>在启动 eclipse 时使用该参数。

回答by dbouchillon

I had a similar problem with an unexpected reboot while eclipse was running. I could not start eclipse. Checked the .log file and had the same lock error message. I removed the .lock file from my workspace.metadata folder and was able to start up again.

我在 eclipse 运行时遇到了类似的意外重启问题。我无法启动日食。检查 .log 文件并有相同的锁定错误消息。我从我的 workspace.metadata 文件夹中删除了 .lock 文件,并且能够再次启动。

回答by brandonjsmith

I had to delete (rename) my .metadata/.plugins directory for eclipse to startup.

我不得不删除(重命名)我的 .metadata/.plugins 目录,以便 eclipse 启动。

回答by Kainda

This worked for me. If you go to your workspace directory perform the following steps:

这对我有用。如果您转到工作区目录,请执行以下步骤:

  1. cd .metadata/.plugins
  2. mv org.eclipse.core.resources org.eclipse.core.resources.bak
  3. Start eclipse. (It should show an error message or an empty workspace because no project is found.)
  4. Close all open editors tabs.
  5. Exit eclipse.
  6. rm -rf org.eclipse.core.resources (Delete the newly created directory.)
  7. mv org.eclipse.core.resources.bak/ org.eclipse.core.resources (Restore the original directory.)
  8. Start eclipse and start working.
  1. cd .metadata/.plugins
  2. mv org.eclipse.core.resources org.eclipse.core.resources.bak
  3. 开始日食。(它应该显示一条错误消息或一个空的工作区,因为没有找到项目。)
  4. 关闭所有打开的编辑器选项卡。
  5. 退出日食。
  6. rm -rf org.eclipse.core.resources(删除新创建的目录。)
  7. mv org.eclipse.core.resources.bak/org.eclipse.core.resources(恢复原目录。)
  8. 启动eclipse并开始工作。

Solution, coutersy of the following: http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/

解决方案,以下内容:http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/

回答by Gert

I got exactly the same problem after an unexpected power loss.

在意外断电后,我遇到了完全相同的问题。

Solutions mentioned before did not work so I compared the .metadata\.plugins\org.eclipse.core.resourcesfolder with a backup. The backup did not have the .snapfile which was present in the current workspace. After deleting this file, Eclipse did start again.

之前提到的解决方案不起作用,所以我将.metadata\.plugins\org.eclipse.core.resources文件夹与备份进行了比较。备份没有.snap当前工作区中存在的文件。删除此文件后,Eclipse 确实再次启动。

(I first have tried the solution of Kainda, which did not work to me but did result in no open Editor tab's.)

(我首先尝试了 Kainda 的解决方案,它对我不起作用,但没有打开编辑器选项卡。)

Eclipse version: Luna Release (4.4.0)

Eclipse 版本:Luna 发布 (4.4.0)

回答by amulya349

I got exactly the same problem but none of the above specified solutions worked for me.

我遇到了完全相同的问题,但上述指定的解决方案都不适合我。

What I did was delete the .metadatadirectory inside the workspacedirectory of the eclipse. After doing this, eclipse started like a charm but it didn't had any projects in its project explorer. I just imported all the projects at once and it was rolling once again.

我所做的就是删除.metadata该目录里面workspace的eclipse目录。执行此操作后,eclipse 开始运行,但它的项目资源管理器中没有任何项目。我只是一次导入所有项目,它再次滚动。

Eclipse version:

日蚀版:

Eclipse Java EE IDE for Web Developers.
Version: Neon.1a Release (4.6.1)
Build id: 20161007-1200

回答by Durga

I had a similar issue. All of sudden Eclipse was not starting. Checked the .log file in eclipse configuration and had same exception with root cause

我有一个类似的问题。Eclipse 突然没有启动。检查了 Eclipse 配置中的 .log 文件,并且与根本原因有相同的异常

java.lang.NullPointerException at org.eclipse.osgi.internal..framework.BundleContextImpl.close(BundleContextImpl.java:92)

java.lang.NullPointerException at org.eclipse.osgi.internal..framework.BundleContextImpl.close(BundleContextImpl.java:92)

In my case problem is not with workspace, followed the solution from eclipse forum,

在我的情况下,问题不在于工作区,遵循eclipse 论坛的解决方案,

I took the first class reporting the error,

i.e. org.eclipse.osgi and deleted the (lock) files under configuration/org.eclipse.osgi/.manager

Files had names starting with .fileTable

I was then able to start Eclipse without a computer reboot but did have to specify the workspace when it restarted.

我参加了报告错误的第一堂课,

即 org.eclipse.osgi 并删除了 configuration/org.eclipse.osgi/.manager 下的(锁定)文件

文件的名称以 .fileTable 开头,然后

我就可以在没有计算机的情况下启动 Eclipse重新启动但必须在重新启动时指定工作区。

after removing the .lock file from eclipse configuration/org.eclipse.osgi/.manager folder, I could be able to start eclipse.

从 eclipse configuration/org.eclipse.osgi/.manager 文件夹中删除 .lock 文件后,我可以启动 eclipse。

回答by Axel Osorio

  1. backup on a zip all your files from this folder
  2. delete the files the folder is \MyEclipse 2017 CI\configuration\org.eclipse.osgi.manager
  1. 将此文件夹中的所有文件备份在 zip 上
  2. 删除文件夹中的文件\MyEclipse 2017 CI\configuration\org.eclipse.osgi.manager

restart myeclipse

重启myeclipse