O'Reilly logo

Java™ Deployment with JNLP™ and Webstart™ by Mauro Marinilli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling Installations

The API for controlling the installation of resources (and applications) comprises the DownloadService, DownloadServiceListener, and ExtensionInstallerService. We have already seen many examples of these classes at work. In Chapter 13, “A Complete Example,” there are also some examples of these classes in use.

In Listing 11.6, we present an interesting example of an installer that puts downloaded JAR files into a specified directory—here the lib/ext/ directory of the currently installed JRE.

Listing 11.6. An Optional Packages Installer Example
 package com.marinilli.b2.c11; import com.marinilli.b2.c11.util.Utilities; import javax.swing.*; import java.awt.print.*; import javax.jnlp.*; import java.awt.*; import java.io.*; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required