Reputation: 1499
What do you think are the advantages/disadvantages of a Java Web Start project against an Java Applet? We're trying to figure out what type we should use for our new application. We've already developed an Desktop App (JAR) and we're trying to make is useable from every machine, which has Java installed, without the need of installing it.
Any thoughts?
Upvotes: 1
Views: 2414
Reputation: 6107
JNLP can (and in some cases should) be used with applet. Just finished integration of applet that read-write to user's file system.
Advantages of applet are obvious -- no installation on client machine.
Disadvantages:
not working in Chrome anymore;
additional configuration required -- each jar's manifest file must contain
Permission: all-permissions
line.
Upvotes: 0
Reputation: 168835
AppletContext
provides some ability for an applet to interact with the environment, but the JNLP API goes beyond what the AC can achieve (mostly).Of course, it should be mentioned that the lines become blurred:
..we're trying to make is useable from every machine, which has Java installed, without the need of installing it.
I would sweep aside the 'without the need of installing it' requirement of that since there is always the passage of time and the need for updating plug-ins. On that note, use deployJava.js to handle JRE minimum version checking. The script will either embed an applet or write a link to a JNLP launch file after checking minimum Java is available.
The Stack Overflow info. pages for tags:
Upvotes: 3
Reputation: 147164
Since 6u10 the significant difference is down to an applet appearing in (and being able to interact with) a web page (possibly opening windows that don't necessarily interact very well with the browser window) and WebStart applications being separate from the web browser. WebStart applications will automatically get their own process, which may be significant from a memory usage point of view, at the cost of a slower warm start. Applets have access to javax.jnlp.*
since 6u10.
Upvotes: 2
Reputation: 1135
I think web start is what you should use. As far as I know it allows you to start full blown java applications.
Upvotes: 0