使用 xuggle 而不安装 Java Web 应用程序 [英] Using xuggle without installing for a java web application

查看:22
本文介绍了使用 xuggle 而不安装 Java Web 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 WINdows 操作系统创建了一个 Screencast 小程序.小程序使用 xuggle 对视频进行编码和解码.当系统上未安装 xuggle 时,它​​会尝试加载一些本机代码,因此会出现以下错误:

I have created a Screencast applet for WIndows OS. The applet uses xuggle to encode and decode videos. It gives the following error when xuggle is not installed on the system as it tries to load some native code:

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)

怎样才能消除安装.以便小程序直接在任何系统上运行.

How can the installation be eliminated. So that the applet runs directly on any system.

推荐答案

使用较新的 Xuggler 版本.从 5.4 开始,它不再需要安装,本地库从 jar 文件本身加载.

Use a newer Xuggler version. Starting from 5.4 it does not require installation anymore, native libraries are loaded from the jar file itself.

这篇关于使用 xuggle 而不安装 Java Web 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆