Sun Java Solaris Communities My SDN Account
 
Java Pet Store Demo 1.3.1

Java Pet Store Demo 1.3.1 > Installing the Demo Without WebServices

 


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

Java Pet Store Demo 1.3.1 > 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 (J2SE SDK), v1.3.1: download here

                                                    OR
       
    Java 2 SDK, Standard Edition (J2SE TM SDK), v1.4: download here

    2. Java 2 SDK, Enterprise Edition (J2EE SDK), v 1.3.1: download here

    3. Java Web Start Update Package, v1.0.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:\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.

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

To install the demo, follow these steps:
    Unzip the distribution bundle (petstore-1_3_1.zip) into any directory.

    A directory called petstore1.3.1 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 .

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.