-
UnsatisfiedLinkError
Hi All,
I am trying to use one of the jar files. The porgram compiles fine but when I try to run the program it gives me this error. I have put the jar file into the class path. I have put the location of dierctory containing the jar file into path but still its not working. Can anyone suggest what can be the cause of the problem?
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jxi in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at ukbpa.Xi.XiProxy.<clinit>(XiProxy.java:11)
at ukbpa.Xi.XiFunctions.<clinit>(XiFunctions.java:10)
at ScratchPad.main(ScratchPad.java:34)
-
in this case, it is likely something in the ukbpa.Xi.XiProxy is trying to load a native library, such as a .dll or a .so file. the environment variable java.library.path is a path like variable to contain the folders that should be searched for when looking for native libraries. it is possible this variable is not set. or the native library jxi.dll (or jxi.so) is not there.
try to see what this java.library.path is first:
Code:
System.out.println("native library path: " + System.getProperty("java.library.path"));
-
On UNIX systems, make sure your LD_LIBRARY_PATH contains the directory where the shared objects related to jxi reside (usually a lib directory under your jxi install). On windows, make sure your PATH variable contains the directory where the jxi dll is located.
-
I cannot find jxi.dll file into the folder of installation? Is their anyplace I can look if the jxi.dll files exsists or not?
-
The installer might have stuck it down in your windows or windows/system folder. But if you have a bad install, it might not have been installed at all, which would explain why windows can't find it.