大夢想家

          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 阿南 閱讀(3353) 評論(2)  編輯  收藏 所屬分類: Eclipse-RCP

          評論

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

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

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

          選了,還是錯呀
            回復  更多評論    
          主站蜘蛛池模板: 德格县| 区。| 赤峰市| 固阳县| 姜堰市| 乐安县| 玉树县| 崇仁县| 桓仁| 荆门市| 特克斯县| 安丘市| 台江县| 南宫市| 赣州市| 璧山县| 图木舒克市| 和静县| 苏尼特右旗| 黔东| 长岭县| 凭祥市| 沙田区| 台东县| 高清| 长顺县| 济阳县| 云浮市| 晴隆县| 龙门县| 萝北县| 哈密市| 湘阴县| 丽水市| 灵台县| 利辛县| 宝兴县| 克什克腾旗| 中山市| 龙里县| 禄劝|