[jitsi-dev] Adding jar dependency


#1

Hello,

I am working on an experimental feature and I need to add the Bouncy Castle
OpenPGP jar to the project. I tried to follow the existing pattern of the
Bouncy Castle Provider jar. I used "bnd wrap" to create a bundle and
verified the packages are exported with "bnd view" command. I added an ant
command to copy the bundle to "sc-bundles" folder on build. I
modified felix.client.run.properties to run the bundle. However, when I run
I still get a NoClassDefFoundError exception. What am I missing?

Cheers,

Jeff Mixon


#2

I am working on an experimental feature and I need to add the Bouncy Castle
OpenPGP jar to the project. I tried to follow the existing pattern of the
Bouncy Castle Provider jar. I used "bnd wrap" to create a bundle and verified
the packages are exported with "bnd view" command. I added an ant command to
copy the bundle to "sc-bundles" folder on build. I modified
felix.client.run.properties to run the bundle.

All good.

However, when I run I still
get a NoClassDefFoundError exception. What am I missing?

Probably that you need to _import_ the packages exported by the new bundle into wherever you want to use it. See e.g. otr.manifest.mf for an example (net.java.sip.communicator.plugins.otr).

Cheers,
Jeff Mixon

Ingo