如何解决java.lang.UnsatisfiedLinkError

时间:2019-11-13 19:58:06

标签: java jnetpcap

我想在Ubuntu 16.04上的Java程序v1.8中解决以下异常:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: com.slytechs.library.NativeLibrary.dlopen(Ljava/lang/String;)J
    at com.slytechs.library.NativeLibrary.dlopen(Native Method)
    at com.slytechs.library.NativeLibrary.<init>(Unknown Source)
    at com.slytechs.library.JNILibrary.<init>(Unknown Source)
    at com.slytechs.library.JNILibrary.loadLibrary(Unknown Source)
    at com.slytechs.library.JNILibrary.register(Unknown Source)
    at com.slytechs.library.JNILibrary.register(Unknown Source)
    at com.slytechs.library.JNILibrary.register(Unknown Source)
    at org.jnetpcap.Pcap.<clinit>(Unknown Source)
    at iscx.cs.unb.ca.ifm.reader.PacketReader.config(PacketReader.java:53)
    at iscx.cs.unb.ca.ifm.reader.PacketReader.<init>(PacketReader.java:48)
    at iscx.cs.unb.ca.ifm.InitIscxFlowMeter.main(InitIscxFlowMeter.java:44)

我已经阅读了所有类似的问题,但没有成功。

export JNETPCAP_HOME=/path to jnetpcap/jnetpcap-1.4.r1425
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/path to jnetpcap/jnetpcap-1.4$
export CLASSPATH=/path to jnetpcap/jnetpcap-1.4.r1425

,但是错误一直存在。 我还安装了相关的库,例如libpangoxft-1.0-0:i386。 到底是什么问题?

0 个答案:

没有答案