Netbeans JNLP Webstart错误 [英] Netbeans JNLP Webstart error

查看:143
本文介绍了Netbeans JNLP Webstart错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一整天都在和这个斗争,我根本无法弄清楚我做错了什么。我在netbeans中有一个项目,我根据netbeans教程中的方法创建了一个web开始页面,但每次我尝试运行教程项目或我的项目作为web启动时,我都会收到以下错误:

I have been fighting with this all day and I simply cannot figure out what I am doing wrong. I have a project in netbeans that I created a web start page for, as per the method in the netbeans tutorial but every time I try to run either the tutorial project or my project as a web start I get the following error:

java.lang.NumberFormatException: For input string: "\Users\<snip>"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebaseEx(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(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)

我的jnlp文件是:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/<snip>/dist/" href="launch.jnlp" spec="1.0+">
    <information>
        <title>...</title>
        <vendor>me</vendor>
        <homepage href=""/>
        <description>...</description>
        <description kind="short">...</description>
    </information>
    <update check="background"/>
    <security>
<all-permissions/>
</security>
    <resources>
    <j2se version="1.8+"/>
    <jar eagar="true" href="<snip>.jar" main="true"/>

    </resources>
    <application-desc main-class="<snip>">
    </application-desc>
    </jnlp>

我真的很感谢这方面的帮助

I would really appreciate help with this

推荐答案

尝试

file:/// C:/ Users / snip / dist /

在你的JNLP-XML的代码库中。

文件Uri-Scheme需要2x //(文件://)

in your codebase of your JNLP-XML.
File Uri-Scheme needs 2x // (file://)

编辑

对此没有评论?


所以,如果这不起作用,你可以尝试以下操作:

https://stackoverflow.com/a/2417010/3887073

告诉:

<jnlp spec="1.0+" codebase="file://localhost/X:/path/to/jnlp/" href="software.jnlp">

这篇关于Netbeans JNLP Webstart错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆