Calling JNI Method


General J2EE: Calling JNI Method

  1. Calling JNI Method (1 messages)

    Hello Everyone ...

    I´m having a problem to call a native method inside a DLL by JNI. I can load the DLL by "System.loadLibrary" but when i call the method i get the following error message:

    java.lang.UnsatisfiedLinkError: criptografa

    at com.tim.util.cripto.ACC_Cripto.criptografa(Native Method)

    I´ve already put the DLL path into the PATH variable but it doesn´t work fine.

    I´m trying to do this in a Web Application deployed in the Weblogic 7.0.

    This method call works fine in a java console application.

    Thanks for help.


    Threaded Messages (1)

  2. Calling JNI Method[ Go to top ]

    Hi Rodrigo,

    The .dll has to be in the system well as any dependant libraries. You might want to check the PATH variable on the java console application where it works....and compare that with the PATH variable on the server machine....and verify that the .dll and any dependant libraries are similarly installed on the server machine.