Webstart horror! :(

First off I’d like to say that if someone just wants to point me to a tutorial or relavent thread for using jogl with webstart, that would be welcome.

Problem 1: I tried signing all my jars as I usualy do with my webstart apps however I ran into trouble when trying to sign jogl.jar, heres the message:

jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 8735 but got 8679 bytes)

So when I try to launch my app via webstart I am told that not all jars were signed by the same certificate. I guess this is because jogl.jar was already signed (perhaps thats why I couldn’t sign it?). Anyway, after much looking I found a forum post talking about using an ‘extension’ jnlp for loading 3rd party jars that are already signed (allows loading jars signed by more than one certificate). So I create the extension jnlp and link to it, this leads to problem number two.

Problem 2: I made a bit of a typo when creating the extension jnlp, I forgot the tag, it has since been added but webstart refuses to recognize the new version (insert angry face here). I have tried removing my game from webstart (applications->remove app), clearing IE cache, and using IE’s delete files option with ‘delete all offline content’ checkbox checked. I can’t seem to do anything so it will stop telling me that the stupid tag is missing! I had my friend launch the game and while it still wasn’t working, it wasn’t telling him that the tag was missing (some other problem which I will eventualy have to address I suppose…). So the issue must be with the jnlp getting cached.

Has anyone had similar trouble? this is very annoying… What do you do about signing jogl.jar? do people regularly use an ‘extension’ jnlp as I described in order to launch jogl webstart apps? If someone wants to just give me instructions on getting webstart working with jogl rather than addressing my specific issues, thats fine. Heres the webstart link: http://www.cyntaks.com/projects/asteroids/webstart/asteroids.php

Webstart has it’s own cache. There’s a menu option to flush it from within the webstart program…

Markus Persson noted that you currently have to rejar jogl.jar in order to get by the zipException. Personally, I have no experience with the latest version of JOGL, but will have time to move things over (and deal with the problems in September).

Regards,

ribot.

BTW. I got the info about rejaring from the third page of this thread:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1081799754;start=30#30

wow, can’t believe how smooth that went after I repacked the jar ;D. Thanks for the help guys, works perfect now.