我有 vlc 便携式应用程序。在我的机器上。当我尝试使用此代码加载库时
NativeLibrary.addSearchPath(
RuntimeUtil.getLibVlcLibraryName(), "C:/arun/software_Installations/VLC"
);
Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);
它抛出异常:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': The specified module could not be found.
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:368)
at com.sun.jna.Native.loadLibrary(Native.java:353)
at guvi.VLCJ.main(VLCJ.java:18)