0
我有vlc便攜式應用程序。在我的機器中。 當我嘗試使用此代碼java綁定vlc
NativeLibrary.addSearchPath(
RuntimeUtil.getLibVlcLibraryName(), "C:/arun/software_Installations/VLC"
);
Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);
它會拋出異常加載的lib:
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)
你確定這條路嗎? – Freak 2013-03-08 03:51:28
這條路是正確的。它的便攜版本,所以只有路徑看起來很奇怪 – reach2arunprakash 2013-03-08 07:11:29