将系统包添加到 PDE 运行时配置
我为许多包创建了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.