webstart

I suppose this is a general issue, not just with xith, but I have the start of a game and I was trying to hook it up to webstart. I “borrowed” a .jnlp template from one of the demo programs and editted it as it fit my needs. Now I want to do one of two things.

Option 1: This is to run it from my local machine with a code base of

file:\c:\mars\networking

This should work, however, it tells me that it cannot load the file. This option isn’t feasible, however, in the long term because I will eventually have to run option two.

Option 2: I have a geocities website (problem number 1). I want to upload the class files and the .jnlp to the website and webstart it from there, but geocities doesn’t seem to like jnlp files.

Any ideas?

file:\c:\mars\networking - you’ll probably need “file:/c:/mars/networking” but you might want to consider converting what ever you’re doing to use the ClassLoader to get the resource for you.

Geocities - if they support PHP (or something similar) you can use this to change the content-type of the returned file to the appropriate one for JNLP.

At the risk of self promotion, you might want to checkout a tutorial I wrote on WebStart, its at:

http://grexengine.com/sections/externalgames/articles/Kevin%20Glass-A%20Walkthrough%20with%20WebStart-JNLP-1.html

I do note there is at least one oversight in there that hasn’t been fixed yet (should really use alias name when creating the keystore).

Kev

I’m making progress. I have a jar file with all my stuff in it, however, when I try to run the jnlp (I’m running it on my local machine), it tells me that the jar resources aren’t signed by the same person. Is there a way around this? I think it may have something to do with the fact that I just linked to

http://www.xith.org/jws/libs/

Out of laziness. I will eventually create my own jars for the native files but this is just a test right now.

You can use the extension tags in JNLP to pull in pre signed extensions. However, I think the decision was made early on not to make Xith available as an extension in this way, mostly because everyone needs their own hacks atm to be using Xith.

You best bet is to package and sign your own Xith jars.

Kev

Ok, I got everything packaged, but when I run the jnlp, it shows Java ™ loading… for a second or two, then exits? Did I do something wrong? I already checked the website troubleshooting and they had a similar problem for 1.3, but i’m using 1.4…

Enable the webstart console so you can see what is going on…

Report back!

How do I enable the webstart console? Even if I try to open the application manager, it closes after the splash screen.

thought I’d just chime in and say that I’d normally try to help but I’m away on holiday. Back Saturday :slight_smile:

Will.