Deployment Best Practices
You can improve the user experience of your rich Internet application (RIA)
using the best practices described in this topic.
- Optimize the size of JAR files and related resources so
that your RIA can load quickly. See
Reducing the Download Time for optimization techniques.
- Enable the version download protocol and use background update checks to enable your
RIA to start quickly. See
Avoiding Unnecessary Update Checks to learn more about the version download protocol and update checks.
- Sign JAR files only when absolutely necessary. See
Signing JAR Files Only When Necessary to learn when to sign your RIA.
- Make sure that the client has the required version of the Java Runtime
Environment software. See
Ensuring the Presence of the JRE Software for details on how the Deployment Toolkit script can be used for this purpose.
- Embed the contents of your applet's JNLP file in the
<applet> tag to avoid loading the JNLP file from the
network. This feature was introduced in the Java SE 7 release. See
Embedding JNLP File in Applet Tag to learn how to embed the contents of the applet's JNLP file in the web page.
- Preload your Java Web Start application, if possible.
If you plan to deploy your RIA as a Java Web Start application
in an enterprise where you have
some administrative control, you can preload your application to various
clients so that it is cached and ready to use.
Use the following command to preload your Java Web Start application: