将系统包添加到 PDE 运行时配置

发布于 2024-09-06 22:42:12 字数 398 浏览 1 评论 0原文

我为许多包创建了 eclipse 运行配置。其中一个包依赖于以下包:

com.sun.mirror.apt,
com.sun.mirror.declaration,
com.sun.mirror.type,
com.sun.mirror.util

我相信这些是 Sun Java JVM 的一部分。当我将这些包作为系统包添加到 Felix 容器时,该容器可以很好地加载该包。

但是,到目前为止,我无法找出如何将这些包配置为 Eclipse 中运行配置的附加系统包(我发现如何通过更改 config.ini 来了解 Eclipse 的整体情况)。

编辑:这些类似乎位于系统库tools.jar中。或者就我而言,因为我使用的是 Mac OS X,它们可能位于classes.jar 中?

I created an eclipse run configuration for a number of bundles. One of the bundles has a dependency to the following packages:

com.sun.mirror.apt,
com.sun.mirror.declaration,
com.sun.mirror.type,
com.sun.mirror.util

I believe these are part of the Sun Java JVM. When I add these packages as system packages to a Felix container, the bundle is loaded fine by that container.

However, I was unable so far to find out, how I can configure these packages as additional system packages for a run configuration in eclipse (I found how eclipse as a whole can be made aware by changing the config.ini).

EDIT: It seems that these classes are in the system library tools.jar. Or in my case, as I am using Mac OS X, they could be in classes.jar?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半边脸i 2024-09-13 22:42:12

OSGi 规范定义了一个名为“org.osgi.framework.system.packages.extra”的属性(在处理启动属性的第 4.2.2 段中进行了解释),它允许您指定应由框架导出的额外包。将您的包添加到运行配置中的该属性中,它应该可以工作。

The OSGi specification defines a property called "org.osgi.framework.system.packages.extra" (explained in paragraph 4.2.2 that deals with launching properties) that allows you to specify extra packages that should be exported by the framework. Add your packages to that property in your run configuration and it should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文