basic JNLP question

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)

Hi,

I’ve been struggling with JNLP / webstart for the past few hours and I thought I would describe the resolution in case anybody else is interested. This may be super-apparent to people who are familiar with the technology, but it was a bit cryptic to me.

Using does indeed work perfectly, as advertised. The issue I was having is that I also had the jogl jars on my classpath. Once I removed them everything jogl-related worked fine. The error message kept telling me that I didn’t have security permissions, but in fact it was simply because I was inadvertantly trying to use my (unsigned) local jogl jars.

Second, there are some issues with Netbeans and signing jars, which involves editing the ant files. It gets a bit complicated. But I suppose this is off topic for this forum. If anyone has questions about getting jogl webstart to work in a netbeans environment, feel free to post here or email me. I think that Netbeans is working on improving their jnlp support, so hopefully it won’t be so confusing in the future.

-spiraljetty