How to create OSGi bundle from jar library?

前端 未结 6 802
-上瘾入骨i
-上瘾入骨i 2020-12-01 08:27

How to create OSGi bundle from jar library?

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 08:35

    • Create a new Plug-in project from existing JAR archive.

    • Add the jar file to be exported

    • Click next and name the project.

    • NOTE:
    • Make sure OSGI framework is selected in target platform.
    • Unzip the JAR archives into the project is deselected -> deselecting it, will export all the packages of the JAR

    • if Unzip the JAR archives into the project is selected then you will manually need to export required packages in the MANIFEST.MF file.

    Click finish. You will find project with name transport-5.1.1 created in your workspace. Also you can verify, all the packages of the JAR are exported in MANIFEST.MF file.

提交回复
热议问题