随笔-159  评论-114  文章-7  trackbacks-0
我只用了1周学会了RCP,开始开发,比Swing好用多了

当我要导出到发布平台上,竟然报错!

!SESSION 2007-12-03 11:59:01.796 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2007-12-03 11:59:02.718
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application.
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:165)
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:149)
 at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
 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.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:74)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 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.core.launcher.Main.invokeFramework(Main.java:336)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)
org.eclipse.core.runtime.CoreException[1]: java.lang.ClassNotFoundException: td.app.Application
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
 at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
 at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)
 at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
 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.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:74)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 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.core.launcher.Main.invokeFramework(Main.java:336)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)


弄到12点没有搞定,竟然难倒我这个java高手。

找死,必须干掉他。

早上想了一下,生产的plugins好像不是jar文件,只是一个目录,难道打包本身就有问题。

运行报我自己写的类找不到,明明就在同一目录阿!!!!

同一目录,一个点代表相同目录

在plugin.xml中classpath中,加入



Up到最上面就搞定了。

没有能难倒的问题!

AIX,我只用了1晚上就学会了。但往往简单的是比较难想到,细节!!!!!



posted on 2007-12-03 12:07 北国狼人的BloG 阅读(14330) 评论(9)  编辑  收藏

评论:
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2008-04-16 15:06 | 崇拜者
太伟大了,呵呵  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2008-05-23 16:19 | wjh
nice job  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-09-07 21:23 | zhoujie
我还是不行.. 我也遇到你这样的问题

我的程序是在3.2上开发的, 我想到3.4上去运行. 但是就是不行.  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-09-17 17:50 | we
我只用了1周学会了RCP

你真牛,  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-11-06 15:06 |
牛人  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2010-03-24 16:40 | 问风尘
扯什么乱七八糟的,没能解决就别乱结尾...  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2010-03-29 13:58 | 北国狼人
你丫看不懂人话阿,怎么没解决,日。

@问风尘
  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2012-01-17 16:21 | clac
遇到的问题类似,只不过可以打包,打包出的插件添加到eclipse上就不能用了,环境配置全部统一,环境也很干净。目前没找到解决方法。  回复  更多评论
  
# re: RCP开发,如何解决 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2012-03-28 10:23 | notebook
我也碰到类似问题,在plugin.xml中classpath中,加入.不能解决.不过我发现我的编译后的class文件在bin目录,于是在plugin.xml中classpath中加上"/bin"后才解决  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: