OS X 更新到 10.6.3 后 Eclipse Galileo 将无法启动
我刚刚将 os x 更新到 10.6.3,没有 Eclipse 无法启动,日志显示以下错误,但我无法弄清楚。任何人都可以阐明吗?
!SESSION 2010-03-30 10:06:38.244 -----------------------------------------------
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.php.product -keyring /Users/gav/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.php.product -keyring /Users/gav/.eclipse_keyring -showlocation
!ENTRY org.eclipse.ui.workbench 2 0 2010-03-30 10:06:40.139
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2010-03-30 10:06:40.139
!MESSAGE Conflict for 'com.aptana.ide.editors.views.actions.actionKeyCommand':
HandlerActivation(commandId=com.aptana.ide.editors.views.actions.actionKeyCommand,
handler=com.aptana.ide.editors.views.actions.ActionKeyCommandHandler,
expression=,sourcePriority=0)
HandlerActivation(commandId=com.aptana.ide.editors.views.actions.actionKeyCommand,
handler=com.aptana.ide.editors.views.actions.ActionKeyCommandHandler,
expression=,sourcePriority=0)
!ENTRY org.eclipse.ui 4 0 2010-03-30 10:06:40.964
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.Device.getFontList(Device.java:369)
at org.eclipse.jface.resource.FontRegistry.filterData(FontRegistry.java:465)
at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:499)
at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:563)
at org.eclipse.jface.resource.FontRegistry.defaultFontData(FontRegistry.java:575)
at org.eclipse.jface.resource.FontRegistry.getFontData(FontRegistry.java:591)
at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:116)
at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:59)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1482)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
看起来更新可能升级了 Java 版本,可能是 :S 但我不知道即使更新了它是否可以回滚。
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
提前致谢!
I have just updated os x to 10.6.3 and no Eclipse won't start the logs show the following error, but I can't figure it out. Can anyone shed any light?
!SESSION 2010-03-30 10:06:38.244 -----------------------------------------------
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.php.product -keyring /Users/gav/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.php.product -keyring /Users/gav/.eclipse_keyring -showlocation
!ENTRY org.eclipse.ui.workbench 2 0 2010-03-30 10:06:40.139
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2010-03-30 10:06:40.139
!MESSAGE Conflict for 'com.aptana.ide.editors.views.actions.actionKeyCommand':
HandlerActivation(commandId=com.aptana.ide.editors.views.actions.actionKeyCommand,
handler=com.aptana.ide.editors.views.actions.ActionKeyCommandHandler,
expression=,sourcePriority=0)
HandlerActivation(commandId=com.aptana.ide.editors.views.actions.actionKeyCommand,
handler=com.aptana.ide.editors.views.actions.ActionKeyCommandHandler,
expression=,sourcePriority=0)
!ENTRY org.eclipse.ui 4 0 2010-03-30 10:06:40.964
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.Device.getFontList(Device.java:369)
at org.eclipse.jface.resource.FontRegistry.filterData(FontRegistry.java:465)
at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:499)
at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:563)
at org.eclipse.jface.resource.FontRegistry.defaultFontData(FontRegistry.java:575)
at org.eclipse.jface.resource.FontRegistry.getFontData(FontRegistry.java:591)
at org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(ThemeElementHelper.java:116)
at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:59)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1482)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
It looks like the update may have upgraded the Java version, possibly :S but I don't know if this can be rolled back even if it did update it.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
以下链接可能会有所帮助,它还讲述了一些类似的问题
https://aptanastudio.tenderapp.com/discussions/problems/331-apatnaeclipse-fail-to-start-on-ma-os-1061
Following link may help , that also tells about some similar problem
https://aptanastudio.tenderapp.com/discussions/problems/331-apatnaeclipse-fail-to-start-on-ma-os-1061
更新到 10.6.3 后,我的 eclipse 也遇到了同样的问题。
删除 sreejith 指示的那些文件对我来说不起作用,但请注意,我没有重新启动我的 Mac。相反,我去寻找更多建议,并在Apple支持论坛中找到了一些建议,这些建议说要删除这些文件,但还要发出以下两个命令来清除字体缓存
“atsutildatabases-removeUser”
“sudoatsutildatabases-remove”
仅这些命令并没有不适合我。我做了更多的谷歌搜索,发现一个网站解释了如何清除 Leopard 中的字体缓存:
http://www.macworld.com/article/139383/2009/03/fontcacheclear.html
它重复两个“atsutil”命令,但添加了另一个重新启动 fontd 的命令:
“atsutil server -shutdown ”
,另一个检查 fontd 是否已重新生成:
“atsutil server -ping”
这就是最终让 Eclipse 再次为我工作的原因 - 无需重新启动!
I had the same problem with eclipse after updating to 10.6.3.
Deleting those files indicated by sreejith didn't work for me, but mind you I didn't restart my Mac. Instead I went looking for more advice and found some in the Apple Support forums which said to delete those files but to also issue the two following commands to clear the font caches
"atsutil databases -removeUser"
"sudo atsutil databases -remove"
These alone didn't work for me. I did a bit more googling and found a website that explained how to clear font caches in Leopard:
http://www.macworld.com/article/139383/2009/03/fontcacheclear.html
It repeats the two "atsutil" commands but adds another one which restarts fontd:
"atsutil server -shutdown"
and another to check that fontd has respawned:
"atsutil server -ping"
This is what finally got eclipse working again for me - without having to restart!
这四个命令对我不起作用。 :-(
我必须启动字体簿并解决所有重复的字体。
步骤:
1) 选择所有字体
2) 从右侧列表中选择所有字体
3) 右键单击并选择“解决重复项”
4) 如果某些字体系列名称旁边仍然有黄色小三角形,请打开这些字体系列并禁用旁边有警告标志的字体正上方的各个字体。
5) 一旦不再有警告标志,关闭 Font Book 并打开 Eclipse。
我希望这有帮助。
-Alex
问题详细信息:
看起来 10.6.3 添加了大量重复字体。据我所知,这些重复的字体是导致 java 为获取字体系列中的字体而进行的本机调用的问题的原因。请参阅下面的 Eclipse 代码:
The four commands did not work for me. :-(
I had to launch Font Book and resolve all the duplicate fonts.
Steps:
1) Select All Fonts
2) Select all the fonts from the list at rights
3) Right click and select Resolve Duplicates
4) If there are still little yellow triangles next to some of the font family names open up those font families and disable the individual fonts right above the ones that have the warning sign next to them.
5) Once there are no more warning signs close Font Book and open Eclipse.
I hope this helps.
-Alex
Problem Details:
It looks like 10.6.3 added a ton of duplicate fonts. These duplicate fonts as far as I can tell were what was causing issues with the native calls that java was making to get the fonts in a font family. See code from Eclipse below:
有一种比手动删除文件更优雅的方法。请参阅 如何在升级后修复 FDT(或任何其他基于 Eclipse 的 IDE) Mac OS X 10.6.3 升级以获取分步说明。
There's a more graceful way to do it than just remove files manually. See How to fix FDT (or any other Eclipse-based IDE) after Mac OS X 10.6.3 upgrade for step by step instructions.