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.
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.*; ...