我正在尝试启动位于http://gparyani.com/beatbox.jnlp的 JNLP ,但是当我尝试这样做时,我在内部类中得到了 NullPointerException:
java.lang.NullPointerException
at com.sun.deploy.security.SandboxSecurity.showSandboxDialog(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.checkSignedSandboxSecurity(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.isPermissionGranted(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:
<jnlp spec="1.0+" codebase="http://gparyani.com/">
<information>
<title>BeatBox</title>
<vendor>Gaurav Paryani, Nick Hoang, and Harrison Qi</vendor>
<offline-allowed/>
</information>
<update check="background" policy="prompt-run"/>
<resources>
<j2se version="1.7+"/>
<jar href="beatbox.jar" main="true"/>
</resources>
<application-desc main-class="com.gparyani.beatbox.GUIMaker"/>
</jnlp>
这里有什么问题?