gpt4 book ai didi

java - Java Web Start 中的启动文件错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:36:42 25 4
gpt4 key购买 nike

我正在尝试通过 Web 启动启动 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)

最佳答案

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

这样与“Web Start”通信:

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

//Say Successfully
installerService.installSucceeded(false);

//Say failure
installerService.installFailed();

关于java - Java Web Start 中的启动文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4404638/

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