I have an applet (chopped down demo for a game I have been working on) and I’m wondering what’s the best way to insure that the user has at least the 1.2 jre installed.
I realize there are a few options, the first one is setting it so that a browser will use the java plugin, this seems to have a few issues, for one it’s ugly embedding things (especially since ie and netscape handle that differently), and it seems to require that you have different code for each possible acceptable jre (like 1.2 1.3 1.4 etc… potentially 1.4.2 or even 1.4.2_08), and if that’s the case, you would also have to make sure that if multiple acceptable versions exist that only one actually runs… This option sucks.
Another option is to use webstart, it handles the verion issue which is a good start, but the reason this thing is an applet is hopefully one day it can appear on some of the portal sites, portal sites don’t seem to be too keen on webstart just yet, this is still an option but I don’t trust webstart and I hate to include that extra layer when in the past all I can rely on it to do is make it so that 1 out of 3 people can’t play my game for no apparent reason…
And the final option I’m aware of is simply use the applet tag, and pray most people have a jre that’s suitable installed already, and notify them that if the program doesn’t start they need to go get java from sun. This isn’t such a bad option, particularly if you can check if they need to go get it in the first place. I’m open to ideas on that…
Anyway, what do the people of this forum feel is the best option, I’m leaning towards the third one, or maybe a perfect option someone else might suggest in a reply.