隨筆-159  評論-114  文章-7  trackbacks-0
          我只用了1周學(xué)會了RCP,開始開發(fā),比Swing好用多了

          當(dāng)我要導(dǎo)出到發(fā)布平臺上,竟然報錯!

          !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高手。

          找死,必須干掉他。

          早上想了一下,生產(chǎn)的plugins好像不是jar文件,只是一個目錄,難道打包本身就有問題。

          運行報我自己寫的類找不到,明明就在同一目錄阿!!!!

          同一目錄,一個點代表相同目錄

          在plugin.xml中classpath中,加入



          Up到最上面就搞定了。

          沒有能難倒的問題!

          AIX,我只用了1晚上就學(xué)會了。但往往簡單的是比較難想到,細(xì)節(jié)!!!!!



          posted on 2007-12-03 12:07 北國狼人的BloG 閱讀(14362) 評論(9)  編輯  收藏

          評論:
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2008-04-16 15:06 | 崇拜者
          太偉大了,呵呵  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2008-05-23 16:19 | wjh
          nice job  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-09-07 21:23 | zhoujie
          我還是不行.. 我也遇到你這樣的問題

          我的程序是在3.2上開發(fā)的, 我想到3.4上去運行. 但是就是不行.  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-09-17 17:50 | we
          我只用了1周學(xué)會了RCP

          你真牛,  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2009-11-06 15:06 |
          牛人  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2010-03-24 16:40 | 問風(fēng)塵
          扯什么亂七八糟的,沒能解決就別亂結(jié)尾...  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2010-03-29 13:58 | 北國狼人
          你丫看不懂人話阿,怎么沒解決,日。

          @問風(fēng)塵
            回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 org.eclipse.core.runtime.CoreException: Plug-in TD was unable to load class td.app.Application. 2012-01-17 16:21 | clac
          遇到的問題類似,只不過可以打包,打包出的插件添加到eclipse上就不能用了,環(huán)境配置全部統(tǒng)一,環(huán)境也很干凈。目前沒找到解決方法。  回復(fù)  更多評論
            
          # re: RCP開發(fā),如何解決 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中,加入.不能解決.不過我發(fā)現(xiàn)我的編譯后的class文件在bin目錄,于是在plugin.xml中classpath中加上"/bin"后才解決  回復(fù)  更多評論
            

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 嵊泗县| 大名县| 盘锦市| 兖州市| 卢龙县| 马鞍山市| 柞水县| 阳春市| 上犹县| 义马市| 文成县| 昌都县| 壶关县| 施甸县| 南投市| 维西| 北安市| 托里县| 额敏县| 沅陵县| 德庆县| 南昌市| 平潭县| 上蔡县| 临桂县| 云浮市| 大化| 雅江县| 东光县| 吉林市| 宾阳县| 金门县| 深圳市| 腾冲县| 东辽县| 宜兰市| 永靖县| 永清县| 铜川市| 洛阳市| 德江县|