代码之家  ›  专栏  ›  技术社区  ›  mxro

向PDE运行时配置添加系统包

  •  2
  • mxro  · 技术社区  · 14 年前

    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
    

    我相信这些都是Sun JavaJVM的一部分。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?

    1 回复  |  直到 14 年前
        1
  •  1
  •   Marcel Offermans    14 年前

    OSGi规范定义了一个名为“org.osgi.framework.system.packages.extra”的属性(在处理启动属性的第4.2.2段中解释),该属性允许您指定框架应导出的额外包。Add your packages to that property in your run configuration and it should work.