大夢想家

          5年開發工程師,2年實施經理,X年售前顧問,......
          數據加載中……
          插件開發依賴其他插件時一定要注意!
          插件開發依賴其他插件時,我們要在plugin.xml的dependency 項的required plugin里面選擇你要依賴的插件~然后如果你啟動就會報錯:
           1!SESSION 2007-06-19 14:10:03.031 -----------------------------------------------
           2eclipse.buildId=unknown
           3java.version=1.5.0_08
           4java.vendor=Sun Microsystems Inc.
           5BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
           6Framework arguments:  -product com.glnpu.dmp.client.platform.product
           7Command-line arguments:  -product com.glnpu.dmp.client.platform.product -data F:\DMP/../runtime-com.glnpu.dmp.client.platform.product -dev file:F:/DMP/.metadata/.plugins/org.eclipse.pde.core/com.glnpu.dmp.client.platform.product/dev.properties -os win32 -ws win32 -arch x86
           8
           9!ENTRY org.eclipse.osgi 2 0 2007-06-19 14:10:04.390
          10!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
          11!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-19 14:10:04.390
          12!MESSAGE Bundle update@../../DMP/com.glnpu.dmp.client.platform/ was not resolved.
          13!SUBENTRY 2 com.glnpu.dmp.client.platform 2 0 2007-06-19 14:10:04.390
          14!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
          15
          16!ENTRY org.eclipse.osgi 2 0 2007-06-19 14:10:04.390
          17!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
          18!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-19 14:10:04.390
          19!MESSAGE Bundle update@../../DMP/com.glnpu.dmp.client.platform/ [61] was not resolved.
          20!SUBENTRY 2 com.glnpu.dmp.client.platform 2 0 2007-06-19 14:10:04.390
          21!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
          22
          23!ENTRY org.eclipse.core.runtime 2007-06-19 14:10:04.390
          24!MESSAGE Product com.glnpu.dmp.client.platform.product could not be found.
          25
          26!ENTRY org.eclipse.osgi 4 0 2007-06-19 14:10:04.406
          27!MESSAGE Application error
          28!STACK 1
          29java.lang.RuntimeException: No application id has been found.
          30    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:56)
          31    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
          32    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
          33    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
          34    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
          35    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          36    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          37    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          38    at java.lang.reflect.Method.invoke(Method.java:585)
          39    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
          40    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
          41    at org.eclipse.core.launcher.Main.run(Main.java:977)
          42    at org.eclipse.core.launcher.Main.main(Main.java:952)
          43
          44!ENTRY org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          45!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
          46!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          47!MESSAGE Bundle update@../../DMP/com.glnpu.dmp.client.platform/ was not resolved.
          48!SUBENTRY 2 com.glnpu.dmp.client.platform 2 0 2007-06-19 14:10:04.406
          49!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
          50
          51!ENTRY org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          52!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
          53!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          54!MESSAGE Bundle update@../../DMP/com.glnpu.dmp.client.platform/ [61] was not resolved.
          55!SUBENTRY 2 com.glnpu.dmp.client.platform 2 0 2007-06-19 14:10:04.406
          56!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.

          其實錯誤的核心是:
          1!ENTRY org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          2!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
          3!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-19 14:10:04.406
          4!MESSAGE Bundle update@../../DMP/com.glnpu.dmp.client.platform/ [61] was not resolved.
          5!SUBENTRY 2 com.glnpu.dmp.client.platform 2 0 2007-06-19 14:10:04.406
          6!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
          因為啟動我的插件找不到需要依賴的插件~注意這里的找不到是指OGIS的加載機制找不到~
          處理辦法是什么?
          很簡單~選中你加載進來的插件選擇旁邊的properties...,然后選擇optional就OK了~

          客戶虐我千百遍,我待客戶如初戀!

          posted on 2007-06-19 14:18 阿南 閱讀(3356) 評論(2)  編輯  收藏 所屬分類: Eclipse-RCP

          評論

          # re: 插件開發依賴其他插件時一定要注意![未登錄] 2009-04-10 17:25 aa

          這種方法不好
            回復  更多評論    

          # re: 插件開發依賴其他插件時一定要注意! 2009-04-22 16:29 ccat

          選了,還是錯呀
            回復  更多評論    
          主站蜘蛛池模板: 横峰县| 时尚| 区。| 读书| 都安| 长寿区| 永丰县| 阿城市| 连南| 尉氏县| 仁布县| 庐江县| 松潘县| 温泉县| 通许县| 兴义市| 康乐县| 莱芜市| 九江市| 阳信县| 叙永县| 旬阳县| 班戈县| 凯里市| 永福县| 荔浦县| 抚州市| 信丰县| 灵石县| 吉木萨尔县| 保康县| 合肥市| 万荣县| 武胜县| 青田县| 察雅县| 绥芬河市| 富源县| 阳高县| 祁阳县| 拜城县|