jPCT - a 3d engine for Java => Support => Topic started by: fireside on July 18, 2008, 03:33:09 am

Title: web start
Post by: fireside on July 18, 2008, 03:33:09 am
I'm somewhat of a java dummy and I am wondering now if it wouldn't be better to start out with a web start program rather than an applet.  Is it easier to do a web start and are there any problems with using it on a freebie web page? 
Title: Re: web start
Post by: EgonOlsen on July 18, 2008, 02:18:34 pm
Webstart is a framework to start applications via the web. You don't have to do anything special for web start, you just write a normal Java application. That may make it easier than writing an applet.
Your web server has to send .jnlp-files with the correct content type. This can either be configured in the web server itself, or by using a .htaccess-file (the provider has to support this) or by naming your .jnlp-file .php and let the scripting language set the content type.
If the server doesn't know of jnlp, .htaccess is not possible and php (or any other scripting language) isn't available, then it won't work. But applets will.
Title: Re: web start
Post by: fireside on July 18, 2008, 08:00:42 pm
O.K.  Thanks.  From what I've found around on free sites, I think applets are the only thing I will be able to do then.  They let you upload jar files.  I guess I'll just try one out that actually uses html and see what I can do with it.