Automatic JNLP maker for Java Web Start

http://t-machine.org/index.php/2008/05/11/java-web-start-jnlp-maker/

A program that lets you specify all the config for your java web start application and then creates a JNLP for you automatically.

EARLY ALPHA ONLY - ONLY PARTIALLY WORKING!

But have a look, and if it works for you, let me know. Once I’ve got the basic thing all up and working, I’ll put up the source code too, so you can hack about with it.

erm, webstart version? :smiley:

Ha ha.

I’ve got more important things to do first - like finish writing it :wink:

That’s an excellent idea. I’m surprised nobody thought of it already!

We should make a web form version for that web site.

Had a javascript thingy for this, but the code was pretty bad.

The original code is a web form, or series of them in fact :).

When we get the Java game sharing website up, then, you should put your web form version up there.

Do you want me to add it now in our website? I don’t even know the exact URL of it :s .

It’s not live on the net any more - I took the server down because I didn’t have time to maintain it.

But … once I’ve got this desktop version working, it will be very very easy to write a J2EE servlet that plugs into it - as I go along porting it, I’m splitting it all out into objects and methods.

I’ll definitely get in touch with you guys about that once I’ve got it working - will be great to have more people using it.

Of course the ultimate would be to have this as an Ant task, I’m still celebrating that I don’t have to type those manifest files manually anymore :slight_smile:

Somebody did… I think it was a JGO forum member that did this before. I can’t remember if it was working well or not though :slight_smile:

Well it wouldn’t be hard to include at least basic functionality.

New version.

http://t-machine.org/index.php/category/projects/jnlpcreator/

Still not complete - need to add a really basic feature: the ability to add JAR files to the JNLP :). Doh.

But the clever stuff, like the “test this file locally” is working (tested on Windows, and “supposedly” will work on Linux and OS X - but I haven’t tested on either. NB: you’ll need to set your OS X to use java 6, as this won’t run on anything less).

PS: anyone got some code for making a java file that uses java 6 classes selectively run OK on java 5? e.g. by lazily instantiating the references to the java 6 classes using Class.forName so that the ClassLoader doesn’t try to optimistically load the classes and then die?

Very cool project, keep it up ;D

Hey, should the JNLP maker not run from a JNLP itself? Do you have a webstart link for the webstart maker?

I’d have to get a cert + sign it, to get full permissions so I can write the files to disk (no?) - which means I won’t be bothering until it’s finished.

Obviously, I want to add automatic signing of all files as a feature at some point :slight_smile:

You could sign it yourself ;D

Great stuff, I’ll use it next time I’m creating a JNLP file.

I made a .sh that automatically signs JARs if you’re interested in it.

That would be handy - can you post a link? (or copy/paste it here perhaps?)

Yup, it’s very very simple.


jarsigner -keystore <Your_Signature_Filename> -storepass <Your_Pass> -keypass <Your_Pass> *.jar <Your_Signature_Filename>

Put that in a text file, rename it to a .sh file, then use the command line to:


chmod +x <Your_SH_File>

To make it executable. Then you’re ready to go.

To run it, put all your JARs in a folder with the SH file and your signature file, then cd into the directory and execute it.

You can also add:


cd <Directory_With_SH>

to the beginning of the script. If your script is always in the same directory, this saves you the trouble of having to cd into it.