Java[tm] Smart Ticket Demo 1.1.1 > Installation

Installation

System Requirements

The JavaTM Smart Ticket Demo consists of two parts: one part runs on a J2EETM application server, and the other runs in a J2METM MIDP/CLDC environment.

For demonstration purposes, the sample application requires all of the following items:

For more information on the system requirements of the above items, please refer to their respective documentation sets.

Required Environment Variables

The environment variables JAVA_HOME, J2EE_HOME, and J2MEWTK_HOME must be set as follows:

If want to run the J2ME part of the demo on one computer and the J2EE part of the demo on another, you have to set JAVA_HOME and J2MEWTK_HOME on the computer running the J2ME part and JAVA_HOME and J2EE_HOME on the computer running the J2EE part.

Finally, your PATH must start with the directory %JAVA_HOME%\bin (Windows) or $JAVA_HOME/bin (Linux and Solaris).

Installing the Demo

To install the demo, simply unzip the distribution bundle into any directory. This will create a folder called smarticket. The rest of this documentation will refer to this directory as {smarticket.dir}.

The following table lists the contents of this directory.

File/Directory Description
bin/ Contains the binaries for the client and server parts of the application.
build/client Contains pre-built Java classes for the client component of the application.
build/server Contains pre-built Java classes for the server component of the application.
doc/ Contains the demo documentation.
messages/ Contains the localized messages for the application.
posters/ Contains the movie posters downloadable from the server part of the application.
res/ Contains the resources required by the client part of the application.
src/ Contains the source files for the entire application, as well as some helper files.
tools/ Contains the Ant build tool and custom Ant build tasks for the demo.
build.xml Build file for use with Ant.
localant Shell script for invoking Ant on Solaris and Linux platforms.
localant.bat Batch file for invoking Ant on Windows platforms.
populate Shell script for populating the application's database tables using Cloudscape on Solaris and Linux platforms.
populate.bat Batch file for populating the application's database tables using Cloudscape on Windows platforms.
Contents of installation directory


© 2002 Sun Microsystems, Inc. All rights reserved.