Hi, I’m having issues with making a webstart app from my JOGL project.
Below is my jnlp file, which I took from an example on-line, I forget where. The Jogl User Guide seems to imply that I don’t need to sign any jars. Any ideas what I am doing wrong? I tried using the Netbeans Webstart Module, but it completely failed without even printing out an exception. I am literally just double clicking on the “joglProject.jnlp” file I’ve made. Also I’ve tried opening it from a browser to no avail. Running the jar itself works fine, I just can’t do it via the jnlp file, and thus can’t distribute it as a webstart app. Sorry if this is a dumb question-- every post seems to say “this has already been answered at another post”, but then that other post is completely confusing or unrelated!
Thanks, spiraljetty
The JNLP file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "http://www.netbeans.org/jnlp/DTD/jnlp.dtd">
<jnlp codebase="file:///C:/Documents and Settings/me/NetbeansProjects/JoglProject" href="joglProject.jnlp">
<information>
<title>JoglProject</title>
<vendor>me</vendor>
<homepage href=""/>
<description>jogl project</description>
<icon href="default"/>
<offline-allowed/>
<shortcut online="true"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<jar download="eager" href="dist/JoglProject.jar" main="false"/>
<property name="sun.java2d.noddraw" value="true"/>
<extension href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" name="jogl"/>
</resources>
<application-desc main-class="JoglProject.Main"/>
</jnlp>
The exception:
JNLPException[category: Security Error : Exception: null : LaunchDesc:
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)