An Example of Use

In this final section, we illustrate an example application that includes the utility package and makes use of the generalUtilites class. This, in turn, will take care of providing the needed JNLP runtime services to the application, even if this latter one is not launched via a JNLP file. The services provided in this test class are only illustrative.

The Test Class

As an example of use of this library in Listing D.11 is supplied an application that makes use of various JNLP runtime services. This class can be run seamlessly using a JNLP Client (the JNLP file is provided in Listing D.12) or launching it locally as a usual JAR file.

Listing D.11. The Test Class
 package com.marinilli.b2.ad; import com.marinilli.b2.ad.util.*; ...

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.