【问题标题】:Eclipse Galileo won't start after OS X update to 10.6.3OS X 更新到 10.6.3 后 Eclipse Galileo 无法启动
【发布时间】:2011-02-02 09:26:38
【问题描述】:

我刚刚将 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)

提前致谢!

【问题讨论】:

    标签: java eclipse macos osx-snow-leopard


    【解决方案1】:

    以下链接可能会有所帮助,这也说明了一些类似的问题

    https://aptanastudio.tenderapp.com/discussions/problems/331-apatnaeclipse-fail-to-start-on-ma-os-1061

    【讨论】:

    • 非常感谢,对其他人来说是一种享受只需查看您的主目录并删除文件夹 .fontconfig/ 不要忘记重新启动 os x。
    【解决方案2】:

    我在更新到 10.6.3 后遇到了同样的问题。

    删除 sreejith 指示的那些文件对我不起作用,但请注意,我没有重新启动我的 Mac。相反,我去寻找更多建议,并在 Apple 支持论坛中找到了一些建议,这些建议说要删除这些文件,但还要发出以下两个命令来清除字体缓存

    “atutil 数据库 -removeUser”

    “sudo atsutil 数据库-删除”

    仅这些对我不起作用。我做了更多的谷歌搜索,发现了一个解释如何在 Leopard 中清除字体缓存的网站:

    http://www.macworld.com/article/139383/2009/03/fontcacheclear.html

    它重复了两个“atutil”命令,但添加了另一个重新启动 fontd 的命令:

    “atutil 服务器-关闭”

    另一个检查 fontd 是否已重生:

    "atutil 服务器-ping"

    这就是最终让 eclipse 再次为我工作的原因 - 无需重新启动!

    【讨论】:

      【解决方案3】:

      这四个命令对我不起作用。 :-(

      我必须启动 Font Book 并解决所有重复的字体。 步骤:

      1) 选择所有字体

      2) 从权限列表中选择所有字体

      3) 右键单击​​并选择解决重复项

      4) 如果某些字体系列名称旁边仍有黄色小三角形,请打开这些字体系列并禁用旁边带有警告标志的字体上方的单个字体。

      5) 一旦没有更多警告标志,关闭 Font Book 并打开 Eclipse。

      我希望这会有所帮助。

      -亚历克斯

      问题详情:

      看起来 10.6.3 添加了大量重复字体。据我所知,这些重复的字体是导致 java 为获取字体系列中的字体而进行的本机调用出现问题的原因。请参阅下面的 Eclipse 代码:

      NSArray fonts = NSFontManager.sharedFontManager().availableMembersOfFontFamily(nsFamily);
      int fontCount = (int)/*64*/fonts.count(); //this line was giving the null pointer which means the variable fonts was null. This indicates that there is an issue with the FontManager
      

      【讨论】:

        【解决方案4】:

        有一种比手动删除文件更优雅的方法。有关分步说明,请参阅How to fix FDT (or any other Eclipse-based IDE) after Mac OS X 10.6.3 upgrade

        【讨论】:

          猜你喜欢
          • 2014-07-24
          • 2012-07-25
          • 1970-01-01
          • 2021-03-11
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-12-13
          • 2015-12-14
          相关资源
          最近更新 更多