Java Web Start 中的启动文件错误

发布于 2024-10-07 09:16:28 字数 1976 浏览 0 评论 0原文

我正在尝试通过 web start 启动 java 应用程序,但出现以下错误,我似乎无法弄清楚。任何解决此问题的提示、技巧或技巧将不胜感激。

JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/">
  <information>
    <title>J2RE 1.5.0_22 Installer</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href="null"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java href="http://java.sun.com/products/autodl/j2se" version="1.3+"/>
    <jar href="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-j2re-inst.jar" download="eager" main="false"/>
    <property name="installerLocation" value="jre-1_5_0_22-linux-i586.bin"/>
    <property name="installerSize" value="17283082"/>
    <property name="javaVersion" value="1.5.0_22"/>
    <property name="platformVersion" value="1.5"/>
    <property name="licenseSize" value="13238"/>
    <property name="waitString.0" value="[yes or no]"/>
    <property name="responseString.0" value="yes"/>
    <property name="osplatform" value="linux-i586"/>
  </resources>
  <installer-desc main-class="com.sun.webstart.installers.Main"/>
</jnlp> ]
    at com.sun.javaws.JnlpxArgs.executeInstallers(JnlpxArgs.java:500)
at com.sun.javaws.Launcher.prepareResources(Launcher.java:993)
at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:621)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:327)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:199)
at com.sun.javaws.Launcher.launch(Launcher.java:116)
at com.sun.javaws.Main.launchApp(Main.java:417)
at com.sun.javaws.Main.continueInSecureThread(Main.java:249)
at com.sun.javaws.Main$1.run(Main.java:111)
at java.lang.Thread.run(Thread.java:662)

I'm trying to launch a java app via web start and I'm getting the following error which I can't seem to figure out. Any hints, tips or tricks to resolve this would be greatly appreciated.

JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/">
  <information>
    <title>J2RE 1.5.0_22 Installer</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <homepage href="null"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java href="http://java.sun.com/products/autodl/j2se" version="1.3+"/>
    <jar href="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se/javaws-j2re-inst.jar" download="eager" main="false"/>
    <property name="installerLocation" value="jre-1_5_0_22-linux-i586.bin"/>
    <property name="installerSize" value="17283082"/>
    <property name="javaVersion" value="1.5.0_22"/>
    <property name="platformVersion" value="1.5"/>
    <property name="licenseSize" value="13238"/>
    <property name="waitString.0" value="[yes or no]"/>
    <property name="responseString.0" value="yes"/>
    <property name="osplatform" value="linux-i586"/>
  </resources>
  <installer-desc main-class="com.sun.webstart.installers.Main"/>
</jnlp> ]
    at com.sun.javaws.JnlpxArgs.executeInstallers(JnlpxArgs.java:500)
at com.sun.javaws.Launcher.prepareResources(Launcher.java:993)
at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:621)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:327)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:199)
at com.sun.javaws.Launcher.launch(Launcher.java:116)
at com.sun.javaws.Main.launchApp(Main.java:417)
at com.sun.javaws.Main.continueInSecureThread(Main.java:249)
at com.sun.javaws.Main$1.run(Main.java:111)
at java.lang.Thread.run(Thread.java:662)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千寻… 2024-10-14 09:16:28

当“Web Start”运行installer-desc类时,需要知道安装程序的结果。如果没有得到答案,则会出现异常。

通过以下方式与“Web Start”通信:

ExtensionInstallerService installerService =
            (ExtensionInstallerService) ServiceManager.
                lookup("javax.jnlp.ExtensionInstallerService");

//Say Successfully
installerService.installSucceeded(false);

//Say failure
installerService.installFailed();

When "Web Start" run the installer-desc class, needs to know the result of the installer. If it don't get answer then the exception appears.

Communicate with "Web Start" in this way:

ExtensionInstallerService installerService =
            (ExtensionInstallerService) ServiceManager.
                lookup("javax.jnlp.ExtensionInstallerService");

//Say Successfully
installerService.installSucceeded(false);

//Say failure
installerService.installFailed();
小瓶盖 2024-10-14 09:16:28

我注意到你有

<homepage href="null"/>

这似乎可能是你的问题的根源?如果您没有主页,您可以尝试忽略该标签,而不是设置空值。

I notice you have

<homepage href="null"/>

That seems like it could be the source of your problem? If you don't have a homepage, you might try omitting that tag, instead of setting a null value.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文