J2EE Blueprints

Java (TM) Pet Store Demo

 installation and configuration
   rebuilding the application
 
Note: set J2EE_HOME to the root directory of your J2EE SDK installation. You also need to make sure that $JAVA_HOME/bin (or %JAVA_HOME%\bin on windows) is in your path.

The source code is located in the src directory of the estore distribution. There are two ways to build the application:

  1.  Using ant (recommended): ant is a Java technology build tool like make. A working version of this tool is provided in src/lib/ant directory. Ant has been developed under the auspices of the Apache organization; for more information on this tool see http://jakarta.apache.org/ant/index.html. To use ant to build the source:
    1. Change to the src directory of jps1.1.
    2. Type build.bat or sh build.sh
      Note: If you would like to use another version of ant instead of the one in src/lib/ant, modify the ANT_HOME variable in build.bat/build.sh accordingly.
  1. Using GNU make:
    1. If on Windows NT, install MKS toolkit.
    2. Download GNU make3.77. If on Windows NT, ensure that GNU make is  present in the PATH before the MKS make.
    3. Change to the src directory of jps1.1.
    4. Type make.
Both the ant and GNU make techniques of building the sample application will work for both Unix and Windows NT.

If the compilation succeeds, you will get an petstore.ear file that can be deployed using the J2EE SDK deploytool. The new petstore.ear file can be found at jps1.1/build/lib/petstore.ear. Note, when deploying, be sure to choose the new jps1.1/build/lib/petstore.ear and not the pre-built jps1.1/petstore.ear that came with the original download of the Java Pet Store Demo.