.Jar file runs in netbeans but not when opened outside

倖福魔咒の 提交于 2020-01-14 06:13:42

问题


I have looked at: why doesn't my jar file run outside netbeans? and believe I am getting the same problem. The program runs fine in netbeans but doesnt appear when run on the outside. If i go into my task manager I can see that the program is being run. I had my program set up as a java web start app, but then i changed back to a .jar, because no website had big enough space to host it. I believe this may be the root cause of the problem. That, and when i reassigned my resources to be contained in the jar file. When I look at the code output nothing seems wrong. I also debugged it and nothing was wrong. Any help? If you want me to run in the command prompt, could you please say how to do that? Thanks,

Running through webstart it gets to the verifying file stage and then prompts: Note:"\Users\Camtronius\Documents\NetBeansProjects\SonomaRoller\dist" im pretty sure is the path taken from my JNLP file to launch the 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)

来源:https://stackoverflow.com/questions/22828881/jar-file-runs-in-netbeans-but-not-when-opened-outside

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!