隨筆-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 閱讀(14353) 評論(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"后才解決  回復  更多評論
            

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


          網站導航:
           
          主站蜘蛛池模板: 临沭县| 舞钢市| 潮州市| 济源市| 汉沽区| 海宁市| 舞钢市| 太和县| 长葛市| 吉首市| 三门县| 弥勒县| 常宁市| 遵化市| 班戈县| 乐陵市| 乡宁县| 天柱县| 古田县| 五原县| 云安县| 金平| 连城县| 察哈| 松江区| 东明县| 九寨沟县| 房产| 淮南市| 景德镇市| 博爱县| 色达县| 稻城县| 万宁市| 崇左市| 龙门县| 怀远县| 通州区| 吉木乃县| 慈利县| 怀仁县|