简体   繁体   English

如何创建OSGI包?

[英]How to create OSGI bundle?

我开发了一个标准的Java应用程序及其接口,在这里,我想将该应用程序放入OSGI捆绑软件中,我根本不熟悉OSGI,仅是它的概念,而在编程中什么都不是,我只是想学习如何将这个应用程序捆绑在一起,但是在搜索后,我总是可以获得完整的书籍或完整的参考资料,而我没有足够的时间来做。

You need to include a MANIFEST.MF file which will have the bundle information like version, bundle name, the packages that are to be imported/exported, etc. The MANIFEST.MF file has to be placed in the META-INF folder of your bundle. 您需要包括一个MANIFEST.MF文件,该文件将具有捆绑软件信息,例如版本,捆绑软件名称,要导入/导出的软件包等MANIFEST.MF文件必须放置在您的META-INF文件夹中束。

This is a good tutorial to start you with OSGi. 是一个很好的教程,可以帮助您开始使用OSGi。

This bndtools tutorial is probably the easiest way to get started with OSGi. bndtools教程可能是OSGi入门的最简单方法。 If also this tutorial is too much work I actually would not even start. 如果本教程还有很多工作,我什至不会开始。 Though OSGi is surprisingly easy to use its concepts and requirements on your code are different then what you find in more classic Java environments. 尽管OSGi易于使用,但其概念和对代码的要求却与在经典Java环境中发现的有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM