Forum Stats

  • 3,852,829 Users
  • 2,264,140 Discussions
  • 7,905,155 Comments

Discussions

Exception With Package

Karthikeyan Vaithilingam
Karthikeyan Vaithilingam Member Posts: 128
edited Sep 23, 2010 4:43AM in Java Native Interface (JNI)
Hi

I have a DLL when i try to load the native function from default package it works fine but when i change the package of the JNI class it throws ava.lang.UnsatisfiedLinkError can any one tell me why this is happening

Thanks
Karthi

Comments

  • EJP
    EJP Member Posts: 32,920 Gold Crown
    Err, because you changed the package?

    If you change the package, the class name, or anything about a native method signature you have to regenerate the .h file and adjust your .c file in the same way.
This discussion has been closed.