【发布时间】:2023-03-03 01:48:02
【问题描述】:
我正在尝试将 JXBrowser 捆绑到 OSGI 插件中,但我不断收到无效许可错误。我的 teamdev.licenses 文件信息的错误输出是:
-- Product name: JxBrowser
-- Licensed version: 6.x
-- Licensed to:
-- License type: Development
-- License bound to product: Bound to class name
-- Generation date: Apr 12, 2017
-- Expiration date: NEVER
-- License info: Open Source Project
-- Current date: Aug 24, 2017
JxBrowser license check failed: This license can only be used with Bound to class name
我已经通过 Maven 在 Eclipse 中成功加载了 JXBrowser,但我需要知道如何将许可证绑定到我的类名,在本例中为 org.brettjsettle.internal.OpenExternalAppTask。 JXBrowser 网站说:
包含 JxBrowser 许可证的 license.jar 文件不是 OSGi 包,因此我们建议您从 license.jar 存档中提取 teamdev.licenses 文件并将其放入 jxbrowser.jar 文件的 META-INF 文件夹中,以便许可证检查器可以找到它。
由于我是通过 Maven 获取 JXBrowser,我只是将 teamdev.licenses 粘贴到我的 src/main/resources/META-INF 文件夹中。我尝试在许可文件中添加行,但结果为Signature is not valid
我错过了什么吗?如何将许可证绑定到类名? 谢谢
【问题讨论】:
标签: eclipse osgi osgi-bundle jxbrowser