Results 1 to 5 of 5
  1. #1
    leepan2008 is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default 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)

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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:
    Java Code:
    System.out.println("native library path: " + System.getProperty("java.library.path"));

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    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.

  4. #4
    leepan2008 is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default

    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?

  5. #5
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    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.

Similar Threads

  1. Java3D UnsatisfiedLinkError
    By Cemi in forum New To Java
    Replies: 2
    Last Post: 02-26-2011, 05:10 PM
  2. JNI: ava.lang.UnsatisfiedLinkError
    By tecno40 in forum Java Applets
    Replies: 0
    Last Post: 11-19-2010, 11:59 PM
  3. UnsatisfiedLinkError
    By Hussain Ali in forum Eclipse
    Replies: 2
    Last Post: 04-11-2010, 07:59 AM
  4. UnsatisfiedLinkError using gr.DotNetFromJava.cpp.dll
    By Viter_ in forum Advanced Java
    Replies: 0
    Last Post: 07-17-2009, 08:53 PM
  5. Replies: 0
    Last Post: 08-12-2007, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •