What is LD_LIBRARY_PATH and how to use it?

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

    Typically you must set java.library.path on the JVM's command line:

    java -Djava.library.path=/path/to/my/dll -cp /my/classpath/goes/here MainClass
    

提交回复
热议问题