Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing the IcedTea Java WebStart implementation for Windows


The NetX WebStart implementation from the IcedTea-Web project is written in pure Java, so it can also be used on Windows; we also used it on Linux and Mac OS X in previous recipes in this chapter. In this recipe, we will create a simple implementation of the WebStart launcher script for Windows.

Getting ready

For this recipe, we will need a version of Windows running with Java 7 (the prebuilt OpenJDK or Oracle one) installed. We will also need the netx.jar module from the IcedTea-Web project, which can be built using instructions from the previous recipe in this chapter.

How to do it...

The following procedure will help you to run WebStart applications on Windows:

  1. Download the JNLP descriptor example from the Java tutorials:

    http://docs.oracle.com/javase/tutorialJWS/samples/deployment/dynamictree_webstartJWSProject/dynamictree_webstart.jnlp
    
  2. Test that this application can be run from the Command Prompt using netx.jar:

    java -Xbootclasspath...