gpt4 book ai didi

java - 我如何将 Xuggler 与 Play 结合使用!框架

转载 作者:太空宇宙 更新时间:2023-11-04 08:30:09 27 4
gpt4 key购买 nike

我正在尝试使用 Xuggler (http://www.xuggle.com/) 来玩!框架。我使用的是 Mac OSX,并且还使用 xuggler 路径创建了 ~/.MacOSX/environment.plist 文件。我还在我的 ~/.bashrc

中设置了这些
export XUGGLE_HOME=/usr/local/xuggler
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib

我把所有的 jar 放在我的 play 的 /lib 文件夹中!应用程序并更新了 dependency.yml,如下所示 -

require:
- play
- provided -> xuggle-xuggler

repositories:
- provided:
type: local
artifact: "${application.path}/lib/xuggle-xuggler.jar"
contains:
- provided -> *

顺便说一句,我还运行了play dependency,但它仍然给出此错误 -

UnsatisfiedLinkError occured : no xuggle-xuggler in java.library.path

我该如何解决这个问题?

最佳答案

此错误指出链接到 DLL 文件时出现问题,因此我检查了 Xuggler 的安装文档,它有一个专门处理此类错误的部分。

http://wiki.xuggle.com/Frequently_Asked_Questions#Installation_Questions

它包含以下内容,作为解决错误时应遵循的一组说明。

What's up with java.lang.UnsatisfiedLinkError?

It means that Java can't find the Xuggler native library. Check the following:

  • Did you install the Xuggler?
  • Is the environment variable XUGGLE_HOME defined and pointing to your Xuggler install directory (usually C:\Program Files\Xuggle on Windows or /usr/local on Linux/Mac)?
  • If you installed on Windows, did you reboot after you installed?
  • Does your PATH environment variable include %XUGGLE_HOME%\bin on Windows or $XUGGLE_HOME/bin on Linux/Mac?
  • Does your PATH environment variable include %XUGGLE_HOME%\lib on Windows?
  • Does your LD_LIBRARY_PATH environment variable include $XUGGLE_HOME/lib on Linux?
  • Does your DYLD_LIBRARY_PATH environmentvariable include $XUGGLE_HOME/lib on Mac OS-X?
  • Are you using a 32-bit Java JVM, but a 64-bit version of Xuggler? Or a 64-bit version of the Java JVM but a 32-bit version of Xuggler? Unfortunately that won't work. You need to make sure that you match the "bitness" of each release. Sorry.

关于java - 我如何将 Xuggler 与 Play 结合使用!框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7704772/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com