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.
Rodrigo
-
Calling JNI Method (1 messages)
- Posted by: rodrigo lopes
- Posted on: December 13 2004 12:22 EST
Threaded Messages (1)
- Calling JNI Method by Michael Foley on December 13 2004 14:54 EST
-
Calling JNI Method[ Go to top ]
- Posted by: Michael Foley
- Posted on: December 13 2004 14:54 EST
- in response to rodrigo lopes
Hi Rodrigo,
The .dll has to be in the system PATH...as 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.
Mike