Sample Modification
While the SDK comes with precompiled versions of the samples, customers may want to modify the existing samples and recompile them.
The SDK samples come with a build.xml file in the samples directory that will:
- Compile all of the sample code
- Re-create all of the contents of the dist directory based on the new code
- Re-create all of the samples Javadoc
To run this build script, you must have Ant and the J2SE SDK 1.4.2 or higher installed on your computer and set up appropriately in your environment path.
You can then invoke ant from the samples directory and it will perform all of these tasks.
The Ant script is responsible for setting up your CLASSPATH and including all of the relevant libraries required to build the samples.