问题描述
最近在学习Eclipse的RCP,下载了mp3m的源码,Import到我的Eclipse3.5运行后抛出异常,请哪位“牛人”帮忙解决下,谢谢!异常如下:!SESSION 2010-08-15 22:21:08.470 -----------------------------------------------eclipse.buildId=unknownjava.version=1.6.0_17java.vendor=Sun Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CNFramework arguments: -application com.siemens.ct.mp3m.applicationCommand-line arguments: -application com.siemens.ct.mp3m.application -data H:source codejavaworkspace/../runtime-com.siemens.ct.mp3m.application -dev file:H:/source code/java/workspace/.metadata/.plugins/org.eclipse.pde.core/com.siemens.ct.mp3m.application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog!ENTRY org.eclipse.osgi 2 0 2010-08-15 22:21:09.531!MESSAGE The activator com.siemens.ct.mp3m.Activator for bundle com.siemens.ct.mp3m is invalid!STACK 0org.osgi.framework.BundleException: The activator com.siemens.ct.mp3m.Activator for bundle com.siemens.ct.mp3m is invalidat org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:238)at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)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(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)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)at org.eclipse.equinox.launcher.Main.main(Main.java:1287)Caused by: java.lang.ClassNotFoundException: com.siemens.ct.mp3m.Activatorat org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)at java.lang.ClassLoader.loadClass(Unknown Source)at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)... 23 moreRoot exception:java.lang.ClassNotFoundException: com.siemens.ct.mp3m.Activatorat org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)at java.lang.ClassLoader.loadClass(Unknown Source)at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:238)at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)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(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)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)at org.eclipse.equinox.launcher.Main.main(Main.java:1287)!ENTRY org.eclipse.osgi 4 0 2010-08-15 22:21:09.531!MESSAGE Application error!STACK 1org.eclipse.core.runtime.CoreException: Plug-in com.siemens.ct.mp3m was unable to load class com.siemens.ct.mp3m.Application.at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:162)at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)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(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)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)at org.eclipse.equinox.launcher.Main.main(Main.java:1287)Caused by: java.lang.ClassNotFoundException: com.siemens.ct.mp3m.Applicationat org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)at java.lang.ClassLoader.loadClass(Unknown Source)at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)... 16 more 问题补充:cuiran 写道
解决方案
运行product
解决方案二:
真不知道你是怎么把这些错误弄出来的,我down下来直接运行就OK eclipse modeling3.5.2
解决方案三:
我刚才down了一个,直接运行了下,什么问题都没,我是从官网上checkout下来的,你这个错误是怎么来的呢?我也看了下,这个就是你运行错了,我说的不错的话你运行的应该是com.siemens.ct.mp3m,但实际上不是这个,这个只是个RCP,RCP要以poduct运行添加它的必须jar,你试着运行一下branding.blue和branding.orangle吧两种风格
解决方案四:
引用The activator com.siemens.ct.mp3m.Activator for bundle com.siemens.ct.mp3m is invalid 你弄得这个不可用.