What is LD_LIBRARY_PATH and how to use it?

前端 未结 6 994
一生所求
一生所求 2020-11-27 16:10

I take part in developing a Java project, which uses some C++ components, thus I need Jacob.dll. (on Windows 7)

I keep getting java.lang.UnsatisfiedLinkError:

6条回答
  •  悲哀的现实
    2020-11-27 16:27

    Well, the error message tells you what to do: add the path where Jacob.dll resides to java.library.path. You can do that on the command line like this:

    java -Djava.library.path="dlls" ...
    

    (assuming Jacob.dll is in the "dlls" folder)

    Also see java.lang.UnsatisfiedLinkError no *****.dll in java.library.path

提交回复
热议问题