The Stages

In this section, we will explore the protocol steps sequence in detail.

First of all, a JNLP Client must be installed on the client computer. Then, we need a JNLP root file, that is, the main JNLP file that describes all the needed pieces and how to use them. By following directives in the main JNLP file and in the other extension files, the application can be launched. The dynamic structure (that is, how the file is interpreted by a JNLP Client at runtime) is depicted in Figure 9.2. Here, the main file points to its installer extension, its JAR resources that made up the application itself (files myApp, myIcons), and a set of libraries organized in a component extension.

Figure 9.2. The dynamic structure of an example JNLP file.

Get Java™ Deployment with JNLP™ and Webstart™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.