About the Examples
This section tells you everything you need to know to install, build, and run the examples.
Required Software
Java WSDP 1.6 Bundle
The example source for the technologies in this tutorial is contained in the Java WSDP 1.6 bundle. If you are viewing this online, you need to download the Java WSDP 1.6 bundle from:
After you have installed the Java WSDP 1.6 bundle, the example source code is in the subdirectories of the
<JWSDP_HOME>/<
technology>/samples/
directory. For example, the examples for JAXB are included in the Java WSDP in the subdirectories of the<JWSDP_HOME>/jaxb/samples
directory.Application Server
Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2 is the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the Application Server and the Java 2 Software Development Kit, Standard Edition (J2SE SDK) 1.4.2 or higher (J2SE 5.0 is recommended). The Application Server and J2SE SDK are contained in the J2EE 1.4 SDK. If you already have a copy of the J2SE SDK, you can download the Application Server from:
You can also download the J2EE 1.4 SDK--which contains the Application Server and the J2SE SDK--from the same site.
Building the Examples
Most of the examples in the Java WSDP are distributed with a build file for Ant, a portable build tool contained in the Java WSDP. For information about Ant, visit
http://ant.apache.org/
. Directions for building the examples are provided in each chapter. Most of the tutorial examples in the J2EE 1.4 Tutorial are distributed with a configuration file forasant
, a portable build tool contained in the Application Server. This tool is an extension of the Ant tool developed by the Apache Software Foundation (http://ant.apache.org
). Theasant
utility contains additional tasks that invoke the Application Server administration utilityasadmin
. Directions for building the examples are provided in each chapter.In order to run the Ant scripts, you must configure your environment and properties files as follows:
- Add the
bin
directory of your J2SE SDK installation to the front of your path.- Add
<JWSDP_HOME>/jwsdp-shared/bin
to the front of your path so the Java WSDP 1.6 scripts that are shared by multiple components override other installations.- Add
<JWSDP_HOME>/apache-ant/bin
to the front of your path so that the Java WSDP 1.6 Ant script overrides other installations.