I know how to deploy an applet using applet
, object
, embed
tags and JavaScript
, but I'm after the best approach (in terms of end user experience).
Sun suggests using the applet tag, and a mixed embed / object tag on the same page.
What I am considering is the following:
- Cross-browser support.
- Fallback to download page if incorrect Java version is found (eg pre 1.5).
- Loading page for both Java VM start period and while the Jar is downloaded (ideally a custom splash screen with a progress bar).
Questions have been asked before: how to deploy, check for 1.6, and Plugin framework. None of these fully answer my question. I am also not considering web start or Java FX.
My current solution is to include an additional small test applet compiled for Java 1.1. If Java pre-1.5 is found it redirects the page to the failure page. If no Java is found the page asks the user to visit java.com. This works acceptably, but is poor because it requires an additional applet and doesn't show anything while the VM is starting.