Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 767 times)
0 Members and 1 Guest are viewing this topic.
Offline CommanderKeith
« Posted 2006-06-11 13:02:13 »

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"?>
<!-- Test for STG Web Start Deployment -->
<jnlp
  spec="1.0+"
  codebase="http://www.zubi.com.au/commanderkeith/"
  href="STG.jnlp">
  <information>
    <title>Serious Tank Game</title>
    <vendor>Keith Woodward</vendor>
    <homepage href="http://www.zubi.com.au/commanderkeith/"/>

    <description>Serious Tank Game</description>
    <description kind="short">2D Look-down Multiplayer Tank Game</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="STG.jar"/>
  </resources>

  <application-desc/>
</jnlp>


What could be the problem?  Many thanks,
Keith

Online kevglass

JGO Kernel


Medals: 171
Projects: 23
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 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:

1  
2  
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 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

Quote
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.
Keith

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

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!