Java Reference
In-Depth Information
L ISTING 9.15
Continued
eis.setHeading(“Just An Heading..”);
eis.setStatus(“Here we Go!”);
for (int i=0; i<100; i++) {
eis.updateProgress(i);
try {
Thread.currentThread().sleep(100);
} catch (Exception e) {
System.out.println(“”+e);
}
}
eis.setHeading(“Installation Finished.”);
eis.hideProgressBar();
try {
Thread.currentThread().sleep(400);
} catch (Exception e) {
System.out.println(“”+e);
}
boolean rebootAfterInstallation = false;
eis.installSucceeded(rebootAfterInstallation);
}
}
public static void main(String[] args) {
JNLPInstaller JNLPInstaller1 = new JNLPInstaller();
}
Chapter 11 supplies an example of the way a custom installer class installs an optional package
in the standard lib/ext/ JRE directory. There, you will find information on how to write
installer code using the JNLP client API.
9
Summary
In this chapter we introduced JNLP from a more theoretical viewpoint than Chapter 8. In par-
ticular, we discussed some considerations regarding the adoption of such a deployment tech-
nology. Then we explored the protocol main stages and the basic JNLP file structure, covering
the two main types of descriptors, for extensions and applications. After having completed a
first, overall picture of the JNLP protocol, we are now ready to examine its details. The next
chapter will describe how the Client Environment (we introduced such a concept in Chapter 2)
can be described using the JNLP protocol.
Search WWH ::




Custom Search