我为 WINdows OS 创建了一个 Screencast 小程序。该小程序使用 xuggle 对视频进行编码和解码。当系统上未安装 xuggle 时,它会给出以下错误,因为它试图加载一些本机代码:
2012-07-29 12:40:28,452 [AWT-EventQueue-2] ERROR com.xuggle.ferry.JNILibraryLoader -
Could not load library: xuggle-ferry; version: 3;
Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Exception in thread "AWT-EventQueue-2" java.lang.UnsatisfiedLinkError: no xuggle-ferry in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:265)
at com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:168)
at com.xuggle.ferry.FerryJNI.<clinit>(FerryJNI.java:14)
at com.xuggle.ferry.JNIMemoryManager.<clinit>(JNIMemoryManager.java:871)
at com.xuggle.mediatool.MediaWriter.<clinit>(MediaWriter.java:119)
at com.xuggle.mediatool.ToolFactory.makeWriter(ToolFactory.java:149)
怎样才能消除安装。这样小程序就可以直接在任何系统上运行。