Webstart grief

I’m playing with trying to get a JOGL app going with webstart. As a first test, I thought I’d install just the ‘Gears’ demo jnlp file unchanged on my web server to see if I could get it going.

My trouble is that my browser just displays the contents of the JNLP file. The same piece of HTML referencing the Gears jnlp file on jogl-demos works fine. If you go here:

http://abraded.co.uk/jogl/test.html

The first link works, and the second doesn’t and I’m stumped as to why. Anyone any ideas ? (I don’t think it’s anything to do with https vs. http).

If I double-click the local JNLP file in windows explorer, the gears demo starts fine.

Thanks
Rob

The one not working has wrong content-type, “text/plain”. It should be:

application/x-java-jnlp-file

This can be fixed by altering the server configuration or the script providing the file (php, asp, etc.). The following is an example for Apache configuration:

AddType application/x-java-jnlp-file .jnlp
AddType application/x-java-archive-diff .jardiff

With PHP you can do the following to change the content type:

header(‘Content-type: application/x-java-jnlp-file’);

…and then output the JNLP contents.

nnevatie,

Many thanks for the lightning fast reply. That was indeed it - the two lines added to my apache httpd.conf fixed it (once I flushed my browser cache also).

Thanks again,
Rob