Sun Java Solaris Communities My SDN Account Join SDN
 
Java Pet Store Demo 1.3.2

Java Pet Store Demo> Installing the Demo

 


Guidelines, Patterns, and code for end-to-end Java applications.

Java Pet Store Demo 1.3.2 > Installing the Demo

Installing the Demo

This section describes how to install the Java Pet Store Demo. 

System Requirements

Before installing the demo, you need to install the following softwares: 
    1. Java 2 SDK, Standard Edition (J2SETM SDK), v1.4.1 or higher : download here                                     

    2. Java 2 SDK, Enterprise Edition (J2EETM SDK), v1.3.1: download here

Required Environment Variables

You must also set the environment variables JAVA_HOME and J2EE_HOME 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:\j2sdk1.4.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.

Also, your PATH must include the directory %JAVA_HOME%\bin (Windows) or $JAVA_HOME/bin (Unix). Otherwise, some of the build tasks will not work.

Installing the Demo

    
    

      Unzip the distribution bundle (petstore-1_3_2.zip) into any directory.                               

    A directory called petstore1.3.2 will be created. The rest  of this documentation will refer to this directory as <petstore.home>   .

    Run the setup script to install and configure message services and database resources.

    If you are using Unix, open a shell prompt and enter these commands:

    cd <petstore.home>
    sh setup.sh
    If you are using Windows, open a command prompt and enter these commands:
    cd <petstore.home>
    setup.bat

Start Cloudscape.

If you are using Unix, open a shell prompt and enter these commands:

cd $J2EE_HOME/bin
cloudscape -start
If you are using Windows, open a command prompt and enter these commands:
cd %J2EE_HOME%\bin
cloudscape.bat -start
Start the J2EE server.

If you are using Unix, open a shell prompt and enter these commands:

cd $J2EE_HOME/bin
j2ee -verbose
If you are using Windows, open a command prompt and enter these commands:
cd %J2EE_HOME%\bin
j2ee.bat -verbose
    Run the setup script to deploy the applications.

    If you are using Unix, open a shell prompt and enter these commands:

    cd <petstore.home>
    sh setup.sh deploy
    If you are using Windows, open a command prompt and enter these commands:
    cd <petstore.home>
    setup.bat deploy


After installing the demo, you can start using it .