gpt4 book ai didi

Eclipse Oxygen 插件缺少约束 : Import-Package

转载 作者:行者123 更新时间:2023-12-01 00:22:02 25 4
gpt4 key购买 nike

我正在为 Eclipse Oxygen 编写一个插件,它允许直接从工具栏按钮运行外部工具。当我右键单击该项目并单击 Run As Eclipse Application 时,出现一个显示以下错误的弹出窗口

javax.xml.ws
Missing Constraint: Import-Package: java.xml.bind; version="0.0.0"
Missing Constraint: Import-Package: java.xml.bind.annotation; version="0.0.0"
org.apache.xmlrpc
Missing Constraint: Import-Package: java.xml.bind; version="0.0.0"

如果我单击“继续”,Eclipse 会随插件一起启动并且它运行正常。我已经尝试按照建议 here打开“运行配置”并选择“添加必需的捆绑包”(尽管使用添加必需的插件,因为没有捆绑包按钮)但它没有帮助。我既看不到列表中的 javax.xml.bind,也看不到添加它的方法。

项目本身非常简单,有以下依赖
org.eclipse.core.runtime
org.eclipse.debug.ui
org.eclipse.jface

和扩展
org.eclipse.debug.core.launchers
org.eclipse.ui.commands
org.eclipse.ui.handlers
org.eclipse.ui.menus

我已经列出了依赖层次结构,而 javax.xml.bind 没有列出。

如何添加依赖项或清除错误?

最佳答案

看来,您的目标平台中缺少这两个包( java.xml.bindjava.xml.bind.annotation )。

添加 javax.xml.bind插件 (其中 can be download from Eclipse Orbit ,例如 here )到您的目标平台应该可以解决问题。

关于Eclipse Oxygen 插件缺少约束 : Import-Package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47869504/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com