0

I have created an OSGi bundle and I want to add two external jar files to it called mediasenseplatform.jar and tinyos.jar So I added this line into my manifest file:

Bundle-ClassPAth:.,mediasenseplatform.jar,tinyos.jar 

but it doesn't work and I don't see these files in my bundle jar file. How can I solve this problem?

Björn Pollex
  • 75,346
  • 28
  • 201
  • 283

1 Answers1

1

OSGi doesn't make jar files, it is a platform for deploying and running them. If you want to include these jars in your bunde (which is just another jar) then you have to put them in there yourself.

There are build tools like maven which can do this for you.

You may also want to take a look at this related question.

Community
  • 1
  • 1
Robin
  • 24,062
  • 5
  • 49
  • 58