WebStart- corrupt jar error

Hi,

After much pain I’ve nearly got Webstart working with my game but just after the splash screen comes up I get a Download Error with the following:

An error occurred while launching/running the application.

Title: Serious Tank Game
Vendor: Keith Woodward
Category: Download Error

Corrupted JAR file at http://www.zubi.com.au/commanderkeith/STG.jar

I properly signed the one and only jar file resource (jarsigner tells me so) and the jar file resource (STG.jar) on the website is not corrupt since I can download it and run it fine. Why is WebStart telling me that the jar file is corrupt??? To see the error for yourself, go to http://www.zubi.com.au/commanderkeith/STG.jnlp.

I’ve followed advice from Kev’s tutorial http://www.cokeandcode.com/webstarthowto and http://www.dallaway.com/acad/webstart/ to get to where I am now. This is my .jnlp file, copied from cokeandcode:

<?xml version="1.0" encoding="UTF-8"?>



Serious Tank Game
Keith Woodward

<description>Serious Tank Game</description>
<description kind="short">2D Look-down Multiplayer Tank Game</description>
<offline-allowed/>

What could be the problem? Many thanks,
Keith

Not sure whats going on here, but it seems its your webserver thats the issue. I copied your JNLP and JAR to http://www.cokeandcode.com/stg and it works find. I suspect the mime type being returned for JAR files is incorrect. We have two entried in mime.types which are:


application/octet-stream        bin dms lha lzh exe class so dll jar
application/java-archive        jar

Either check your mime.types file or check with your web administrator.

Kev

PS. Cool looking game, no idea what I was meant to do - but heh :slight_smile: Unfortunately FPS = 3 on my hardware (its crap hardware).

Woo hoo! I owe you for this Kev.

Bugger, yes, good diagnosis. I only put the jnlp MIME type. :-[

Cheers! You probably tried the Greenland map which runs super slow since it causes Windows to un-VRAM the images because too much bitmasking. The keys are WASD, E, R & mouse - you’re meant to find the computer base & capture the flag. I’ll put in a keys menu on & stick it in Games Showcase soon.

Thanks heaps for going to the trouble of proving it works on your website. I would have wasted hours searching google to find the trouble. And that webstart walk-through is really useful.
Keith