Both applets and Java Web Start applications are considered Rich Internet Applications (RIAs). RIAs prompt users for permission to run the first time they are launched and should be signed with a certificate from a trusted certificate authority. Evaluate the following characteristics of applets and Java Web Start applications to decide how to deploy your RIA.
- Applets run in the context of a browser.
- Applets have access to session cookies and persistent cookies.
- Applets can be launched using Java Network Launch Protocol (JNLP). When launched using JNLP, sandbox applets are allowed access to persistent storage, download control, file I/O, and more. Applets launched using JNLP have capabilities that are comparable to that of a Java Web Start application.
Applets can also be launched without JNLP, and can be restricted to the security sandbox or request all permissions.
- Applets can request a particular version of the Java Runtime Environment software for execution.
Java Web Start applications
- Java Web Start applications are launched from a web page the first time. Subsequently, they may be re-launched from the web page or from a desktop shortcut.
- Java Web Start applications are allowed access to persistent storage, file I/O, and other client related services.
- Java Web Start applications can request a particular version of the Java Runtime Environment software for execution.