Linux Eclipse 在启动时挂起
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18450500/
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
Eclipse hangs on startup
提问by nervosol
I have problem with running my Eclipse. I tried 3.7, 4.2 and 4.3 versions with java 6 and java 7. Nothing can help me. It shows me popup screen but it doesn't start to load( I dont have chance to choose workspace).
Starting it with -debug -console
parameters shows that it stops running in this moment:
我在运行 Eclipse 时遇到问题。我用 java 6 和 java 7 尝试了 3.7、4.2 和 4.3 版本。没有什么可以帮助我。它向我显示了弹出屏幕,但它没有开始加载(我没有机会选择工作区)。带-debug -console
参数启动,显示在这一刻停止运行:
Time to load bundles: 10
Starting application: 6374
osgi>
I have started JVisualVM but I cannot observe anything special. There are no deadlocks etc.
我已经启动了 JVisualVM,但我无法观察到任何特殊情况。没有死锁等。
Edit
编辑
My observations were to deep... After ~60s pid of eclipse is dead.
我的观察太深了......在大约 60 秒的日食 pid 之后就死了。
Edit 2
编辑 2
Now it stops on
现在它停止了
Time to load bundles: 8
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Starting application: 3557
Edit 3
编辑 3
I have managed to start it but only with -clean
parameter and with choosing workspace from command line -data
parameter.
我已经设法启动它,但只能使用-clean
参数并从命令行-data
参数中选择工作区。
采纳答案by rtack
I've had exactly the same problem and could solve it using the answer here https://stackoverflow.com/a/5504530/1275767which works by moving the projects out of the workspace and back in again after Eclipse has been started and stopped.
我有完全相同的问题,在这里使用的答案可以解决这个问题https://stackoverflow.com/a/5504530/1275767运作在移动项目出工作的并重新Eclipse中已经开始和停止后.
Starting it with -clean -data started eclipse but whenever I switched the workspace using the eclipse gui it wouldn't load.
使用 -clean -data 启动它会启动 eclipse,但是每当我使用 eclipse gui 切换工作区时,它都不会加载。
回答by Shakti Malik
Remove .snap (or .markers in Indigo) from .metadata.plugins\org.eclipse.core.resources.projects\\
从 .metadata.plugins\org.eclipse.core.resources.projects\\ 中删除 .snap(或 Indigo 中的 .markers)
回答by chico1198
With Eclipse Kepler, you need to remove all of the .snap files within the .plugins directory, i.e. C:...\eclipse-jee-kepler-R-win32.metadata.plugins. Once I did that, everything started up fine. (NOTE: There are about 10 *.snap files total)
使用 Eclipse Kepler,您需要删除 .plugins 目录中的所有 .snap 文件,即 C:...\eclipse-jee-kepler-R-win32.metadata.plugins。一旦我这样做了,一切都开始了。(注意:总共有大约 10 个 *.snap 文件)
回答by Ravi Ramanathan
Tried all the above options, nothing worked. So I finally figured out the solution: I removed all JRE installations in my C:\Program Files and C:|Program Files(x86) folders. Installed a new JDK 7 package, copied the fullpath of JDK7\bin folder and appended it at the end of the "Path" variable found under 'Environment variables' of my Windows 7 pc. Then restarted everything, so it worked.
尝试了上述所有选项,没有任何效果。所以我终于找到了解决方案:我删除了 C:\Program Files 和 C:|Program Files(x86) 文件夹中的所有 JRE 安装。安装了一个新的 JDK 7 包,复制了 JDK7\bin 文件夹的完整路径,并将其附加到我的 Windows 7 电脑的“环境变量”下的“路径”变量的末尾。然后重新启动一切,所以它起作用了。
回答by user6191453
- Edit
workbench.xml
in the\workspace\.metadata\.plugins\org.eclipse.ui.workbench\
folder - remove all the coding in XML File in between
<editor></editor>
in the<editors></editors>
- save the xml file and close the eclipse platform and restart your Eclipse and it should run properly
workbench.xml
在\workspace\.metadata\.plugins\org.eclipse.ui.workbench\
文件夹中编辑- 删除XML文件中的所有编码之间
<editor></editor>
的<editors></editors>
- 保存 xml 文件并关闭 eclipse 平台并重新启动 Eclipse,它应该可以正常运行
回答by DheerajV
Couldn't solve these problems with any of the above options on mars or neon. Downgraded to Luna, which also happens to be the version that I had deleted previously. This worked for me.
在 mars 或 neon 上使用上述任何选项都无法解决这些问题。降级为Luna,这也恰好是我之前删除的版本。这对我有用。