我已经编写了一个基本上裁剪图像形式视频的程序。为此,我使用了xuggle-xuggler-5.4 jar文件。现在,当我在我的本地机器上运行该程序时,它工作正常。但在服务器上部署后,这是基于Linux的服务器。它给了我一个错误。我不知道如何解决它。本地我在窗口env上运行这个程序,服务器是基于linux的。我也谷歌这个问题,我发现了一些类路径问题。但是班级路径也很完美。
有些人可以告诉我,我怎样才能解决这个问题。
type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.UnsatisfiedLinkError: no xuggle in java.library.path
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
java.lang.Runtime.loadLibrary0(Runtime.java:845)
java.lang.System.loadLibrary(System.java:1084)
com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:268)
com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:171)
com.xuggle.ferry.JNILibrary.load(JNILibrary.java:161)
com.xuggle.ferry.FerryJNI.<clinit>(FerryJNI.java:16)
com.xuggle.ferry.Ferry.<clinit>(Ferry.java:25)
com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:19)
com.xuggle.xuggler.Global.<clinit>(Global.java:238)
com.test.ImageFrameFromVideo.<clinit>(ImageFrameFromVideo.java:37)
com.server.servlet.UploadVideoServlet.saveVideo(UploadVideoServlet.java:127)
com.server.servlet.UploadVideoServlet.doPost(UploadVideoServlet.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.`enter code here`