若是要使用eclipse的Form進行開發, 那麼必須在plugin項目的plugin.xml編輯器裏增長一項denpendency: org.eclipse.ui.forms, 其實也就是在MANIFEST.MF裏增長"org.eclipse.ui.forms"到Require-Bundle.
接下去在運行的時候, 系統卻報錯了, log 以下:
... ...
!ENTRY org.eclipse.osgi 2 0 2008-06-15 20:58:14.781
!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:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-06-15 20:58:14.781
!MESSAGE Bundle initial@reference:file:workspace/onlan.demo/ [28] was not resolved.
!SUBENTRY 2 onlan.demo 2 0 2008-06-15 20:58:14.781
!MESSAGE Missing Constraint: Require-Bundle: org.eclipse.ui.forms; bundle-version="0.0.0"
... ...
解決方法是:eclipse
選中項目並右鍵」Run Configuration「,在運行配置"Open Run Dialog ... "裏找到相應的運行項, 而後在"Plug-ins"裏先按下"Validate Plug-ins"按鈕, 會提示你缺乏Bundle項, 而後按下"Add Required Plug-ins"按鈕, 這樣就會把運行時須要的plug-ins給自動添加上去(在這個例子裏是org.eclipse.ui.froms這個插件).編輯器