本文介绍了无法启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Java swing应用程序,我想通过jnlp
启动它,我配置了项目Web启动配置,但是当我按下启动按钮时不起作用.你知道为什么吗?
Hi, I have a java swing application, I want to start it via jnlp
, I configured my project web start configuration but when I push the launch button doesn't work. Do you know why?
这是错误
Java.lang.NumberFormatException: For input string: "\Users\Administrator\Documents\NetBeansProjects\LoginPage\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)
推荐答案
仅此错误,我们只能告诉您您的问题正在发生,原因是String
上的parseInt
而不是int
.要解决此问题,您有两种可能:
With just this error we can only tell you that your problem is happening because of a parseInt
on a String
that is not an int
.To correct this you have two possibilities :
- 添加
try{}catch(NumberFormatException e){//show error}
- 向
parseInt
声明您拥有适当的东西;)
- add
try{}catch(NumberFormatException e){//show error}
- Assert that you have the proper things into
parseInt
;)
这篇关于无法启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!