`
soleegn
  • 浏览: 151081 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
阅读更多
插件开发依赖其他插件时,我们要在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了~
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics