首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过JWS启动xuggle应用程序时出现运行时异常

通过JWS启动xuggle应用程序时出现运行时异常
EN

Stack Overflow用户
提问于 2012-06-23 02:39:20
回答 1查看 982关注 0票数 2

当我通过JWS.But启动我的应用程序时,我得到了以下异常,它在没有JNLP的情况下作为独立的java应用程序启动时工作得很好。

代码语言:javascript
复制
 Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at com.xuggle.ferry.JNIMemoryManager.<init>(JNIMemoryManager.java:861)
at com.xuggle.ferry.JNIMemoryManager.<clinit>(JNIMemoryManager.java:860)
at com.xuggle.mediatool.MediaWriter.<clinit>(MediaWriter.java:119)
at com.xuggle.mediatool.ToolFactory.makeWriter(ToolFactory.java:149)

下面是JNLP:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost/MyApp" href="MyAppLauncher.jnlp">
<information>
    <title>MyAPP</title>
    <vendor>Me</vendor>
</information>
<resources>
    <!-- Application Resources -->
    <j2se version="1.6+"
          href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="MyAppJar.jar"
        main="true" />
    <jar href="xuggle-xuggler.jar" />
    <jar href="xuggle-xuggler-test.jar" />
    <jar href="slf4j-api-1.6.6.jar" />


</resources>
<application-desc
     name="MyApplication"
     main-class=
       "ApplicationMain"
     width="300"
     height="300">
 </application-desc>
<security>
 <all-permissions/>
</security>
<offline-allowed />
 <update check="background"/>
</jnlp>                   

MyApp.jar包含主类file.All,使用的JARS是签名的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-06-23 03:37:28

  1. 请确保资源中引用了包含org.slf4j.LoggerFactory的Jar。
  2. JNLP无效。请务必使用JaNeLA.

检查(& R)它

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11162211

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档