Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [SOLVED] Errors from eclipse cdt core on startup, even after fresh install
[SOLVED] Errors from eclipse cdt core on startup, even after fresh install [message #758907] Fri, 25 November 2011 07:53 Go to next message
Tim  is currently offline Tim Friend
Messages: 2
Registered: November 2011
Junior Member
EDIT: Found the solution! From this forum post: www.eclipse.org/forums/index.php?t=msg&goto=488654 , I just had to add -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU to eclipse.ini.


Hi folks, I'm wondering if I could get some help on this:

I started up Eclipse a few days ago (after maybe a month of not opening it) on my mac os 10.5 machine, and found errors in all the GUI windows, like:

Could not create the view: Plug-in org.eclipse.cdt.ui was unable to load class org.eclipse.cdt.internal.ui.cview.CView


or

Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.


The only thing I can think of that's changed since it last worked is that I upgraded to java 1.6 in the intervening time. Since the GUI seemed to be too broken to do an internal software update, I re-downloaded the eclipse CDT IDE package and unpacked it. Even the fresh install in a separate folder shows the same errors.

I looked around for a description of how to cleanly wipe eclipse from a system, but most of what I read suggested that the install should be self-contained to the unpacked directory. So I'm not really sure what went wrong here or how to fix it.

Any help would be appreciated. A sample stack trace appears below:

Could not create the view: Plug-in org.eclipse.cdt.ui was unable to load class org.eclipse.cdt.internal.ui.cview.CView.

org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.cdt.ui (69).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:268)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:264)
	at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
	at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:875)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
	at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
	at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
	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:3938)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)
	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:3938)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: org.osgi.framework.BundleException: The activator org.eclipse.cdt.ui.CUIPlugin for bundle org.eclipse.cdt.ui is invalid
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 57 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/cdt/core/model/IWorkingCopyProvider
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
	at java.lang.Class.getConstructor0(Class.java:2699)
	at java.lang.Class.newInstance0(Class.java:326)
	at java.lang.Class.newInstance(Class.java:308)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)
	... 63 more
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.cdt.core (42).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 69 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.cdt.core.CCorePlugin.start() of bundle org.eclipse.cdt.core.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	... 78 more
Caused by: java.lang.ExceptionInInitializerError
	at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:751)
	at com.ibm.icu.util.GregorianCalendar.<init>(GregorianCalendar.java:334)
	at com.ibm.icu.text.DateFormat$Field.<clinit>(DateFormat.java:1561)
	at com.ibm.icu.text.SimpleDateFormat.<clinit>(SimpleDateFormat.java:754)
	at org.eclipse.cdt.internal.core.CDTLogWriter.getDate(CDTLogWriter.java:98)
	at org.eclipse.cdt.internal.core.CDTLogWriter.writeHeader(CDTLogWriter.java:87)
	at org.eclipse.cdt.internal.core.CDTLogWriter.openLogFile(CDTLogWriter.java:76)
	at org.eclipse.cdt.internal.core.CDTLogWriter.<init>(CDTLogWriter.java:58)
	at org.eclipse.cdt.core.CCorePlugin.start(CCorePlugin.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	... 84 more
Caused by: java.lang.NullPointerException
	at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:730)
	at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:517)
	at java.util.TimeZone.getAvailableIDs(TimeZone.java:497)
	at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZone.java:37)
	... 96 more

[Updated on: Sun, 27 November 2011 01:27]

Report message to a moderator

Re: Errors from eclipse cdt core on startup, even after fresh install [message #758923 is a reply to message #758907] Fri, 25 November 2011 10:11 Go to previous messageGo to next message
cerh Mising name is currently offline cerh Mising nameFriend
Messages: 6
Registered: November 2011
Junior Member
Caused by: java.lang.NullPointerException
	at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfoFile.java:730)
	at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInfo.java:517)
	at java.util.TimeZone.getAvailableIDs(TimeZone.java:497)
	at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZone.java:37)


Probably, you have no file (for linux: /usr/lib/jvm/jdk1.6.X_X/jre/lib/zi/ZoneInfoMappings) /MAC_JVM???/jre/lib/zi/ZoneInfoMappings or wrong path to jvm.
Re: Errors from eclipse cdt core on startup, even after fresh install [message #759143 is a reply to message #758923] Sat, 26 November 2011 21:24 Go to previous message
Tim  is currently offline Tim Friend
Messages: 2
Registered: November 2011
Junior Member
I don't see a directory that looks anything like that. Anyone have any more info for how mac directories are supposed to be set up? I do see that /System/Library/Frameworks/JavaVM.framework/Versions/Current/ is missing a "Libraries" directory which ../1.5.0 seems to have, although there are a lot of other things different between the two versions. Also of note is a symlink named "CurrentJDK" which points to a non-existent "1.6.0" directory ("A" is "Current")-- though as far as I can tell all the necessary jdk tools are present in "A". Removing that symlink doesn't fix my problem.

Not sure how to repair this. Re-applying the update to 1.6 didn't seem to do anything.

I should also mention that using the Java Preferences app to switch the preferred release back to 1.5 also doesn't work.

[Updated on: Sun, 27 November 2011 00:48]

Report message to a moderator

Previous Topic:compiles but tons of unresolved errors
Next Topic:C++ Build problem!!!!!!!!!!!!
Goto Forum:
  


Current Time: Fri Mar 29 12:22:21 GMT 2024

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

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

Back to the top