Java[tm] Smart Ticket Demo 1.1.1 > Installation |
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:
Java 2 Platform, Standard Edition SDK (J2SETM SDK): v1.3.1 download
The J2SE SDK, v1.3.1 is available for Windows 95/98/ME/NT/2000, Linux, and Solaris platforms.
Java 2 Platform, Enterprise Edition SDK (J2EETM SDK): v1.3.1 download
The J2EE SDK, v1.3.1 is available for Windows NT/2000, Linux, and Solaris platforms.
Java 2 Platform, Micro Edition Wireless Toolkit (J2METM Wireless Toolkit): v1.0.3 download
The J2ME Wireless Toolkit, v1.0.3 is available for Windows 95/98/ME/NT/2000, Linux, and Solaris platforms.
For more information on the system requirements of the above items, please refer to their respective documentation sets.
The environment variables JAVA_HOME
,
J2EE_HOME
, and J2MEWTK_HOME
must be set as
follows:
JAVA_HOME
must point to the root directory of your
J2SE SDK installation. For example, if you installed the J2SE SDK in
c:\jdk1.3.1
, then that path should be the value of
JAVA_HOME
.
J2EE_HOME
must point to the root directory of your
J2EE SDK installation. For example, if you installed the J2EE SDK in
/usr/local/java/j2sdkee1.3.1
, then that path should be
the value of J2EE_HOME
.
J2MEWTK_HOME
must point to the root directory of
your J2ME Wireless Toolkit installation. For example, if you installed
the toolkit in c:\j2mewtk
, then that path should be the
value of J2MEWTK_HOME
.
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).
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. |