插件開發依賴其他插件時一定要注意!
插件開發依賴其他插件時,我們要在plugin.xml的dependency 項的required plugin里面選擇你要依賴的插件~然后如果你啟動就會報錯:
其實錯誤的核心是:
處理辦法是什么?
很簡單~選中你加載進來的插件選擇旁邊的properties...,然后選擇optional就OK了~
客戶虐我千百遍,我待客戶如初戀!
1
!SESSION 2007-06-19 14:10:03.031 -----------------------------------------------
2
eclipse.buildId=unknown
3
java.version=1.5.0_08
4
java.vendor=Sun Microsystems Inc.
5
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
6
Framework arguments: -product com.glnpu.dmp.client.platform.product
7
Command-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
29
java.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.

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

其實錯誤的核心是:
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的加載機制找不到~
2

3

4

5

6

處理辦法是什么?
很簡單~選中你加載進來的插件選擇旁邊的properties...,然后選擇optional就OK了~
客戶虐我千百遍,我待客戶如初戀!
posted on 2007-06-19 14:18 阿南 閱讀(3353) 評論(2) 編輯 收藏 所屬分類: Eclipse-RCP