簡體   English   中英

在OS X更新到10.6.3之后,Eclipse Galileo將無法啟動

[英]Eclipse Galileo won't start after OS X update to 10.6.3

我剛剛將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)

提前致謝!

以下鏈接可能會有所幫助,這也說明了一些類似的問題

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

更新到10.6.3后,我在Eclipse上遇到了同樣的問題。

刪除sreejith指示的文件對我來說不起作用,但是請注意,我沒有重新啟動Mac。 取而代之的是,我去尋找更多建議,並在Apple支持論壇中找到了一些建議,說可以刪除這些文件,但同時發出以下兩個命令來清除字體緩存。

“ atsutil數據庫-removeUser”

“ sudo atsutil數據庫-刪除”

僅這些對我不起作用。 我做了一些谷歌搜索,發現了一個網站,該網站介紹了如何清除Leopard中的字體緩存:

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

它重復了兩個“ atsutil”命令,但添加了另一個重新啟動fontd的命令:

“ atsutil服務器-shutdown”

另一個檢查字體是否已重新生成:

“ atsutil服務器-ping”

這終於使Eclipse重新為我工作-無需重啟!

這四個命令對我不起作用。 :-(

我必須啟動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

除了手動刪除文件外,還有一種更優雅的方法。 有關逐步說明,請參閱Mac OS X 10.6.3升級后如何修復FDT(或任何其他基於Eclipse的IDE)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM