You have two options:

  1. Put the jna.jar in a bundle and export all of its packages.
  2. Add the jna.jar packages to
     org.osgi.framework.system.packages.extra in the
     conf/config.properties file so the system bundle exports them from
     the class path (assuming you have the jna.jar on the class path).

-> richard


On 4/27/09 10:28 AM, chihi asma wrote:
Hi,

I am a beginner in JNA and I want to test it with OSGi, so I implemented a 
simple bundle using JNA, but when I start it, I get this error:
Couldn't start bundle: JNA (#37) (due to: java.lang.NoClassDefFoundError: 
com/sun/jna/Library)
java.lang.NoClassDefFoundError: com/sun/jna/Library

the jna.jar is on my path.

Can anyone help me?

Thanks in advance.

Asma





Reply via email to