没有指定主JAR文件

时间:2016-12-20 22:11:05

标签: java java-web-start jnlp

我有一个使用JWS的中间层应用程序来下载要执行的jar。在一台计算机上,我转到网页,一切都按预期工作。罐子下载并运行完美。我转到另一台计算机,它失败并出现以下错误

JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
<jnlp spec="1.6+" codebase="http://server03-xtx-02:8080/App">
  <information>
    <title>someApp One Launch</title>
    <vendor>Worldwide International, Inc.</vendor>
    <homepage href="docs/help.html"/>
    <description>someApp OneLauncher</description>
    <description kind="short">someApp .</description>
    <icon href="images/someApp.jpg"/>
    <icon href="images/Splash.jpg" kind="splash"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources arch="amd64">
    <j2se version="1.8" initial-heap-size="512m" max-heap-size="1024m"/>
    <j2se version="1.7" initial-heap-size="512m" max-heap-size="1024m"/>
    <j2se version="1.6" initial-heap-size="512m" max-heap-size="1024m"/>
    <jar href="jnlplib/onelauncher.jar"/>
  </resources>
  <application-desc main-class="com.wi.App.launch.OneLauncher">
    <argument>1</argument>
    <argument>http://server03-xtx-02:8081/App</argument>
    <argument>null</argument>
    <argument>false</argument>
    <argument>Tools--QA</argument>
    <argument>ms_vars:=false</argument>
  </application-desc>
</jnlp> ]
                at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
                at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
                at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
                at com.sun.javaws.Launcher.launch(Unknown Source)
                at com.sun.javaws.Main.launchApp(Unknown Source)
                at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
                at com.sun.javaws.Main.access$000(Unknown Source)
                at com.sun.javaws.Main$1.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)

我已经尝试过对两台计算机进行比较,但是为什么一台计算机无法正常工作而另一台机器无法正常运行。我觉得这可能是一个红鲱鱼,但我不知道接下来应该挖的地方。

感谢任何帮助。

0 个答案:

没有答案