Help needed in UnsatisfiedLinkError

Hi,

I had this error when I try to run my java application:

java.lang.UnsatisfiedLinkError: no Authentication in java.library.path

at java.lang.ClassLoader.loadLibrary (ClassLoader.java:1312)

at java.lang.Runtime.loadLibrary0(Runtime.java:749)

at java.lang.System.loadLibrary(System.java:820)

at testelva.TestElva.<clinit>(testelva.java:9)

Exception in thread "main"

It is pointing to my loadlibrary method, I am trying to use the loadlibrary method to load a .lib. Can anyone tell me how to solve this problem as I am new to JNI. Thanks.

Khim

[626 byte] By [ai_khim] at [2007-9-26 5:13:59]
# 1

The library you are to load is not in the JVM search path.

You have to move Authentication library in jre/bin directory of your JVM o specify the path invoking java interpreter. For example suppose your library is in /mylibs path, you should invoke java with the arguments:

java ... -Djava.library.path="/mylibs" ...

topfoxy at 2007-6-29 19:16:30 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
I believe the LoadLibrary is only for "DLL". You would need to copy the "DLL" to your system path. Example...in Windows 98...copy the DLL to "c:\windows\system"
sinsai at 2007-6-29 19:16:30 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
thanks for your help...I was reading the response to the posted question and your response helped me with an UnsatisfiedLinkError. By putting the .dll in the winNT\System32 directory, my error went away..T
ppapaleo at 2007-6-29 19:16:30 > top of Java-index,Java HotSpot Virtual Machine,Specifications...