Eclipse JUNO无法启动


96

当我启动Eclipse时,它不会启动。
出现错误,告诉我查看日志文件。
“查看日志文件:/Users/max/work/projects/.metadata/.log”

操作系统:MacOS 10.7.4
Eclipse:4.2 Juno
ADT:20

我的旧版本Eclipse可以正常启动。

!SESSION 2012-07-03 16:22:48.261 -----------------------------------------------
eclipse.buildId=I20120608-1400
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ru_RU
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/max/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/max/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.resources 2 10035 2012-07-03 16:22:50.101
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.equinox.preferences 4 2 2012-07-03 16:22:56.457
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.preferences".
!STACK 0
java.lang.ExceptionInInitializerError
at org.eclipse.wb.internal.core.preferences.PreferenceInitializer.initializeDefaultPreferences(    PreferenceInitializer.java:50)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:300)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:303)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:131)
at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368)
at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:410)
at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:663)
at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:805)
at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
at org.eclipse.core.runtime.preferences.DefaultScope.getNode(DefaultScope.java:76)
at org.eclipse.ui.preferences.ScopedPreferenceStore.getDefaultPreferences(ScopedPreferenceStore.java:250)
at org.eclipse.ui.preferences.ScopedPreferenceStore.getPreferenceNodes(ScopedPreferenceStore.java:285)
at org.eclipse.ui.preferences.ScopedPreferenceStore.internalGet(ScopedPreferenceStore.java:475)
at org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean(ScopedPreferenceStore.java:387)
at org.eclipse.wb.internal.core.editor.describer.JavaSourceUiDescriber.isGUISource(JavaSourceUiDescriber.java:65)
at org.eclipse.wb.internal.core.editor.describer.JavaSourceUiDescriber.describe(JavaSourceUiDescriber.java:52)
at org.eclipse.core.internal.content.ContentTypeCatalog.describe(ContentTypeCatalog.java:218)
at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:190)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:403)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:450)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:346)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:360)
at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:86)
at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:445)
at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:355)
at org.eclipse.core.internal.resources.File.internalGetCharset(File.java:246)
at org.eclipse.core.internal.resources.File.getCharset(File.java:207)
at org.eclipse.core.internal.resources.File.getCharset(File.java:194)
at org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(Util.java:1156)
at org.eclipse.jdt.internal.core.builder.SourceFile.getContents(SourceFile.java:79)
at org.eclipse.jdt.internal.compiler.ReadManager.run(ReadManager.java:173)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4361)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.SWT.error(SWT.java:4247)
at org.eclipse.swt.widgets.Display.error(Display.java:1068)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:621)
at org.eclipse.swt.graphics.Device.getSystemFont(Device.java:476)
at org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:84)
... 35 more

!ENTRY org.eclipse.osgi 4 0 2012-07-03 16:22:59.978
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jface.preference.PreferenceConverter
at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:103)
at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:59)
at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1550)
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:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2478)
at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:2386)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:583)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
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.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

!ENTRY org.eclipse.core.jobs 4 2 2012-07-03 16:23:05.824
!MESSAGE An internal error occurred during: "Android Library Update".
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.AdtPlugin.getOutStream(AdtPlugin.java:1714)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.allocateLibraryContainer(LibraryClasspathContainerInitializer.java:264)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.updateProjects(LibraryClasspathContainerInitializer.java:81)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$3$1.run(Sdk.java:1197)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.android.ide.eclipse.adt 4 0 2012-07-03 16:23:05.998
!MESSAGE parseSdkContent failed
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.AdtPlugin.getDisplay(AdtPlugin.java:334)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1422)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 2 2 2012-07-03 16:23:06.504
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: com.android.ide.eclipse.adt.internal.sdk.Sdk$5

!ENTRY org.eclipse.core.jobs 2 2 2012-07-03 16:23:06.505
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: com.android.ide.eclipse.adt.internal.sdk.Sdk$5

您是否更新了日食?
阿米特(Amit)

我在新文件夹中,安装新的Eclipse:/ Application / eclipse-旧的/ Application / eclipse4-新
Max Bublikoff 2012年

转到帮助菜单,然后单击“检查更新”,然后进行更新,然后尝试...对我有用。但是由于它甚至还没有开始为您服务..我认为您需要重新安装它。 。
阿米特

4
请仔细阅读我的问题-日食不会开始。
Max Bublikoff 2012年

我也有这个错误。这使我想切换到M $。我在Windows上,因此操作系统似乎并不重要。
NimChimpsky

Answers:


203

修复了我的问题:

rm YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap

学分:http : //www.metod.si/job-found-still-running-after-platform-shutdown-eclipse/


1
巨大:〜max $ ls -la work / projects / .metadata / .plugins / org.eclipse.core.resources / .snap ls:work / projects / .metadata / .plugins / org.eclipse.core.resources / .snap :没有此类文件或目录
Max Bublikoff 2012年

非常奇怪-您可以执行ls -la work / projects / .metadata吗?
ligi 2012年

巨大:〜max $ ls -la work / projects / .metadata总计2368 drwxr-xr-x 8个最大人员272 3时间15:18。drwxr-xr-x 14个最大员工476 30点00:54 .. -rw-r--r-- 1个最大员工1029117 3点15:18 .bak_0.log -rw-r--r-- 1个最大员工0 15时间21:27 .lock -rw-r--r-- 1最大人员172551 3时间17:17 .log drwxr-xr-x 7最大人员238 3时间16:52 .mylyn drwxr-xr-x 37最大人员1258 29日15:29 .plugins -rw-r--r-- 1最大人员26 3日17:16 version.ini
Max Bublikoff 2012年

1
这对我有用,但是我真的不明白为什么。什么是.snap文件?
伊达

1
我认为ist快照文件有时会损坏
ligi

154

删除.metadata / .plugins / org.eclipse.e4.workbench / workbench.xmi解决了我的问题。


4
这对我有用(删除org.eclipse.core.resources导致eclipse仍然无法打开),但是通过删除此文件我丢失了哪些信息,并且有办法从文件中恢复它吗?
2012年

非常感谢..为我工作:)甚至我也没有.snap文件。.非常感谢
aasha 2013年

2
.Snap文件仅在打开Eclipse时存在。如果在eclipse关闭时文件仍然存在,则必须将其删除。如果删除工作台文件,将丢失Eclipse布局。无论如何,删除workbench.xmi可以解决问题。
米尔顿

1
天才!修复了我的感恩节周末睡眠计算机断电后开普勒SR1(4.3?)的问题。
Eric L.

40

我必须按照其他答案中的建议删除以下两个文件,才能解决我的问题,

  • .metadata/.plugins/org.eclipse.core.resources/.snap
  • .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

2
这在Win7机器上对我有用。Java 1.6u43。IntelliJ又要多少钱?;-)
jseals 2013年

这项工作适用于win7和开普勒服务发布2
Juan de Parras,2015年


10

不幸的是,它并没有为我工作,因为我没有.snap

<home>/.metadata/.plugins/org.eclipse.core.resources

我以以下顺序结束:

cd <home>/.metadata
mv .plugins .plugins.failing
<start eclipse>
<exit eclipse>  <--- builds fresh .plugins
cp -r .plugins.failing/org.eclipse.core.resources .plugins/org.eclipse.core.resources  <-- restores existing projects

我也没有在我的工作区有.snap文件夹。这解决了这个问题对我来说有时..它再次撑起经常..
Krishnabhadra

不,那对我没有帮助。
IgorGanapolsky


1

我有一个类似的问题,但在Win7-64上。删除.snap文件使我进入Eclipse,然后必须通过File-> Refresh刷新资源文件。

快照文件位于:YOUR_PROJECT_DIR / .metadata / .plugins / org.eclipse.core.resources / .snap


1

我在Windows上有两次相同的问题:由于ADT插件,Eclipse无法启动。

我删除了临时文件,并使用CCleaner清理了注册表。然后它起作用了。



0

和我一起,加载程序冻结在MyLyn上。在某个地方找到另一个问题,据说要尝试删除工作空间目录下的.metadata / .mylyn内容,这使我能够再次加载我的工作空间



0

如果您查看eclipse.app内容,请检查是否仍然存在eclipse.ini,发现某些更新会破坏此文件...

这就是我的系统上从新版本复制它并再次运行的原因...


好吧,我对此感到无聊-请从您的问题和答案中删除称呼,它们只是对SO的干扰。
jonrsharpe

-3

rm -f〜/ .eclipse /对我有用!


1
请描述这是做什么的以及它如何解决问题。否则,这仅适合作为评论,而不是答案。
澳洲航空94重型
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.