.Jar文件在netbeans中运行,但在外部打开时不运行

时间:2014-04-03 05:50:21

标签: java swing exception netbeans java-web-start

我看过: why doesn't my jar file run outside netbeans? 并相信我遇到了同样的问题。该程序在netbeans中运行良好,但在外部运行时不会出现。如果我进入我的任务管理器,我可以看到该程序正在运行。我将我的程序设置为java web start应用程序,但之后我又改回了.jar,因为没有足够大的空间来托管它。我相信这可能是问题的根本原因。那,当我重新分配我的资源以包含在jar文件中时。当我看代码输出时似乎没有错。我也调试了它,没有错。有帮助吗?如果您希望我在命令提示符下运行,请问您该怎么做?谢谢,

通过webstart运行,它会进入验证文件阶段,然后提示: 注意:" \用户\ Camtronius \文件\的NetBeansProjects \ SonomaRoller \ DIST"我非常确定从我的JNLP文件中获取启动webstart的路径。

java.lang.NumberFormatException: For input string: "\Users\Camtronius\Documents\NetBeansProjects\SonomaRoller\dist"
    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.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)

0 个答案:

没有答案