Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade(eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade)
eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #541799] Tue, 22 June 2010 14:47 Go to next message
J  is currently offline J Friend
Messages: 3
Registered: June 2010
Junior Member
Hi,

I was happily using eclipse until I ran the mac os updater this morning. Now when I try starting eclipse, it won't start. See the error log below.

I'm guessing this is related to a java version problem? I had previously pointed all my system java versions to 1.5, before I ran the mac os x upgrade.

TIA,

JV

java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) Client VM (build 16.3-b01-279, mixed mode)


!SESSION 2010-06-22 10:35:51.582 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/jv11/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/jv11/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2010-06-22 10:35:55.614
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.swt.graphics.Device.getFontList(Device.java:369)
at org.eclipse.jface.resource.FontRegistry.filterData(FontRegis try.java:465)
at org.eclipse.jface.resource.FontRegistry.createFont(FontRegis try.java:499)
at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(Fo ntRegistry.java:563)
at org.eclipse.jface.resource.FontRegistry.getFontRecord(FontRe gistry.java:673)
at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.jav a:613)
at org.eclipse.jface.resource.JFaceResources.getDialogFont(JFac eResources.java:273)
at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialo g.java:925)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(Tit leAreaDialog.java:131)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(Cho oseWorkspaceDialog.java:91)
at org.eclipse.ui.internal.ide.application.IDEApplication.promp tForWorkspace(IDEApplication.java:275)
at org.eclipse.ui.internal.ide.application.IDEApplication.check InstanceLocation(IDEApplication.java:223)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:103)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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)
Re: eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #542049 is a reply to message #541799] Wed, 23 June 2010 16:18 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
Java 6 on Mac is 64-bit. Hence you might have to use the appropriate 64-bit eclipse
Re: eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #542055 is a reply to message #542049] Wed, 23 June 2010 16:30 Go to previous messageGo to next message
J  is currently offline J Friend
Messages: 3
Registered: June 2010
Junior Member
Thanks, that is what I am trying to use now. When my old version of eclipse didn't work, I installed the 64 bit one.

Also, with the previous version of eclipse 32 bit, i used to have my Java 1.6 installation fixed so that 1.6 pointed to 1.5 and only 1.5 was ever used. I am afraid somewhere eclipse thinks it is using 1.5. However, now that I have done the macosx and java 1.6 upgrade, java 1.5 is gone again.

/system/library/frameworks/JavaVM looks like this:


Jun 22 10:34 1.3 -> 1.3.1
Jul 20 2009 1.3.1
Jun 22 10:34 1.4 -> CurrentJDK
Jun 22 10:34 1.4.2 -> CurrentJDK
Jun 22 10:34 1.5 -> CurrentJDK
Jun 22 10:34 1.5.0 -> CurrentJDK
Jun 22 10:34 1.6 -> 1.6.0
Mar 10 22:57 1.6.0
Jun 22 10:35 A
Jun 22 10:35 Current -> A
Jun 22 10:34 CurrentJDK -> 1.6


I am not sure if I should try moving everything back to 1.5 or try to fix eclipse so that it uses 1.6? What do I fix?

Thanks-
Re: eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #542057 is a reply to message #542055] Wed, 23 June 2010 16:31 Go to previous messageGo to next message
J  is currently offline J Friend
Messages: 3
Registered: June 2010
Junior Member
should I download the source and build eclipse from that?
Re: eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #542162 is a reply to message #542057] Thu, 24 June 2010 06:32 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
You don't have to build eclipse from the source code! You could specify the jvm your eclipse needs to use -- Look at http://wiki.eclipse.org/Eclipse.ini#Mac_OS_X_Example
Re: eclipse crashes after mac os 10.6.4 and java 1.6.20 upgrade [message #635399 is a reply to message #541799] Tue, 26 October 2010 16:16 Go to previous message
Sultan Saini is currently offline Sultan SainiFriend
Messages: 2
Registered: October 2010
Junior Member
You may have to clear your font cache.

See
http://tekkie.flashbit.net/flash/how-to-fix-fdt-or-any-other -eclipse-based-ide-after-mac-os-x-10-6-3-upgrade
Previous Topic:Re: Java Indexer running unnecessarily
Next Topic:my problem with java
Goto Forum:
  


Current Time: Thu Apr 18 05:25:30 GMT 2024

Powered by FUDForum. Page generated in 0.02718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top