What is LD_LIBRARY_PATH and how to use it?

前端 未结 6 1000
一生所求
一生所求 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:35

    LD_LIBRARY_PATH is Linux specific and is an environment variable pointing to directories where the dynamic loader should look for shared libraries.

    Try to add the directory where your .dll is in the PATH variable. Windows will automatically look in the directories listet in this environment variable. LD_LIBRARY_PATH probably won't solve the problem (unless the JVM uses it - I do not know about that).

提交回复
热议问题