Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  WebStart- corrupt jar error  (Read 1011 times)
0 Members and 1 Guest are viewing this topic.
Offline CommanderKeith
« Posted 2006-06-11 13:02:13 »


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

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

I've followed advice from Kev's tutorial and to get to where I am now.  This is my .jnlp file, copied from cokeandcode:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Test for STG Web Start Deployment -->
    <title>Serious Tank Game</title>
    <vendor>Keith Woodward</vendor>
    <homepage href=""/>

    <description>Serious Tank Game</description>
    <description kind="short">2D Look-down Multiplayer Tank Game</description>
    <j2se href="" version="1.5+"/>
    <jar href="STG.jar"/>


What could be the problem?  Many thanks,

Offline kevglass

« JGO Spiffy Duke »

Medals: 272
Projects: 25
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2006-06-11 15:57:02 »

Not sure whats going on here, but it seems its your webserver thats the issue. I copied your JNLP and JAR to 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.


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

Offline CommanderKeith
« Reply #2 - Posted 2006-06-11 23:48:15 »

Woo hoo!  I owe you for this Kev.

I suspect the mime type being returned for JAR files is incorrect.
Bugger, yes, good diagnosis.   I only put the jnlp MIME type.   Embarrassed

PS. Cool looking game, no idea what I was meant to do - but heh Smiley Unfortunately FPS = 3 on my hardware (its crap hardware).
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.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (71 views)
2015-11-07 13:29:08

Rems19 (80 views)
2015-10-31 01:36:56

Rems19 (74 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (156 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!