Trouble with System.load() or System.loadLibr

  • Patrick

    Patrick - 2013-02-06

    Hello everybody,

    My java class uses System.load() to … load an external dll. In pure java it's OK. If I call my java class from python via jpype, I have the error :
    "jpype._jexception.LinkageErrorPyRaisable: java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\my.dll: Can't find dependent libraries"
    I have tried with System.loadLibrary() to use the full path, without success.

    If anybody have an idea …

    Thank you.


  • Steve Menard

    Steve Menard - 2013-02-06

    I confess I am at a loss here. JPype doesnt play with paths and library paths (unless done explicitly as an option ot the startJVM function).

    I guess it's possible that the java,exe launcher adds a few directories by default to the dll search path that Jpype doesnt, but I have no idea how to test that hypothesis. Nor would I be able to replicate the functionality in a platform-independent manner (java.exe is platform-dependent and can afford platform-specific functionality).

  • Patrick

    Patrick - 2013-03-06

    I've found. dlls were missed in C:\WINDOWS\system32\.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks