Missing Constraint: Require-Bundle: org.eclipse.ui.forms ... ...
来源:互联网 发布:北京知金教育官网 编辑:程序博客网 时间:2024/06/08 03:25
这个问题让我很头痛呀, 还好, 在eclipse的网站上找到答案了, 原因如下:
如果要使用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"
... ...
解决方法是在运行配置"Open Run Dialog ... "里找到相应的运行项, 然后在"Plug-ins"里先按下"Validate Plug-ins"按钮, 会提示你缺少Bundle项, 然后按下"Add Required Plug-ins"按钮, 这样就会把运行时需要的plug-ins给自动添加上去(在这个例子里是org.eclipse.ui.froms这个插件).
- Missing Constraint: Require-Bundle: org.eclipse.ui.forms ... ...
- Require Bundle Exception; Missing Constraint
- Exception in org.eclipse.debug.internal.ui.DebugUIPlugin.start() of bundle org.eclipse.debug.ui.
- OSGI启动问题 Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
- 在MyEclipse8.0上安装Checkstyle插件报“missing bundle org.eclipse.core.net”错误
- eclipse maven插件问题:error occurred while automatically activating bundle org.eclipse.m2e.core.ui (525)
- eclipse maven插件问题:error occurred while automatically activating bundle org.eclipse.m2e.core.ui (525)
- 如何解决Maven Tycho编译OSGI bundle过程中的Missing Constraint: Bundle-RequiredExceptionEnvironment 异常?
- 出现An error occurred while automatically activating bundle org.eclipse.jdt.ui(743)
- Eclipse Forms设计漂亮UI之简介
- Eclipse Forms设计漂亮UI之布局
- 彈出式菜單 org.eclipse.ui.popupMenus
- org.eclipse.ui.console指南
- org.eclipse.ui.console指南
- org.eclipse.jst.j2ee.ui
- org.eclipse.ui.console指南
- 【OSGi】Could not find bundle: org.eclipse.equinox.console
- 【OSGi】Could not find bundle: org.eclipse.equinox.console问题
- asp.net 爬虫
- 最近有点忙
- 44b0 IIC24cXX读问题分析
- PowerPersonal开发实录:从Database到User Interface
- what will be the output of the following c code?
- Missing Constraint: Require-Bundle: org.eclipse.ui.forms ... ...
- 让Delphi程序只运行一个实例
- Java 调用cmd.exe命令
- 求助:修改sql2005排序规则
- c++位操作指令
- C++面试题大全(附参考答案)
- 2010-6-11 第七天
- ubuntu 10.04 thinkpad 中键 滚动
- 字符型常量