Accessibility
Home / DevNet / Pet Market Application Center
DevNet
DevNet Article
Installing the Macromedia Flash front-end on the Java Pet Store

This article covers the necessary steps for installing the Macromedia Flash front-end on the Java Pet Store on JRun 4 for Microsoft Windows and UNIX. A successful installation of the Flash front-end requires you to perform the following:

  • Install Macromedia Flash Player 6
  • Install Macromedia JRun 4
  • Install Sun's J2EE Pet Store on JRun 4
  • Uncompress the distribution
  • Install the distribution
Installing on Microsoft Windows

The following sections describe the steps for installing the Flash front-end on the Java Pet Store for Microsoft Windows.

Install Macromedia Flash Player 6

You can install the Flash Player 6 from http://www.macromedia.com/software/flashplayer/.

Install Macromedia JRun 4

The first step in using the Flash front-end for the Java Pet Store requires you to install Macromedia JRun 4. Refer to the Installing JRun 4 book that comes with JRun 4. You can download a free developer version of JRun from http://www.macromedia.com/go/jrun.

Install Sun's J2EE Pet Store on JRun 4

Next, download the J2EE Pet Store. You can download it from http://java.sun.com/blueprints/code/index.html#java_pet_store_demo.

Instructions for installing the J2EE Pet Store on JRun can be found at http://www.macromedia.com/go/jrunpetstoreinstructions.

Note: Make sure to perform the following before proceeding:

  • Verify that the J2EE Pet Store is working properly
  • Stop the JRun 4 server

Download and unzip the Macromedia Flash Front-end for J2EE

Download the Macromedia Flash front-end for the Java Pet Store Demo distribution and unzip it into the directory where you installed the J2EE Pet Store. For example, if you deployed the J2EE Pet Store into C:\JRun4\servers\petstore, the distribution file (j2ee-petmarket.zip) should be unzipped into the same location.

Run the installation script

  1. Find the installation script in the directory where it is installed. For example, C:\JRun4\servers\petstore.
  2. Create a shortcut to setup.bat
    a) Right-click on the shortcut and select Properties.
    b) In the Target text box, append the absolute path to your JDK to the end of the Target path (make sure to leave a space between the name of the script and the path you enter). For example, C:\j2sdk1.4.0 is the default path for where Sun's Java SDK 1.4 is installed
     

    c) Click OK.

    Note: If you have an environment variable called JAVA_HOME that points to an install directory for a Java SDK or JRE then you can just double-click setup.bat to continue.
  3. Double-click the new shortcut to run the script.
  4. Start the Jrun4 server.

Accessing the Macromedia Pet Market Application

To access the Flash front-end on the server, enter a URL using your server name and port.

Note: You may need to change the HTTP address to fit your configuration. Make sure you type your server name and port number into the Pet Market address. For example: http://localhost:8100/PetMarket/store.html. If you want the full functionality of the Pet Store, you should run it on Sun's JDK 1.4.

Installing on UNIX

The following sections describe the steps for installing the Flash front-end on the Java Pet Store for UNIX.

Install Macromedia Flash Player 6

You can install the Flash Player 6 from http://www.macromedia.com/software/flashplayer/.

Install Macromedia JRun 4

The first step in using the Flash front-end for the Java Pet Store requires you to install Macromedia JRun 4. Refer to the Installing JRun 4 book that comes with JRun 4. You can download a free developer version of JRun from http://www.macromedia.com/go/jrun.

Install Sun's J2EE Pet Store on JRun 4

Next, download the J2EE Pet Store. You can download it from http://java.sun.com/blueprints/code/index.html#java_pet_store_demo.

Instructions for installing the J2EE Pet Store on JRun can be found at http://www.macromedia.com/go/jrunpetstoreinstructions.

Note: Make sure to perform the following before proceeding:

  • Verify that the J2EE Pet Store is working properly
  • Stop the JRun 4 server

Download and unzip the Macromedia Flash Front-end for J2EE

Download the Macromedia Flash front-end for the Java Pet Store Demo distribution and unzip it into the directory where you installed the J2EE Pet Store. For example, if you deployed the J2EE Pet Store into /opt/jrun4/servers/petstore, the distribution file (j2ee-petmarket.zip) should be unzipped into the same location.

Run the installation script

  1. Find the installation script in the directory where it is installed. For example, /opt/jrun4/servers/petstore.
  2. Once in the directory, run the setup.sh script.

    # sh ./setup.sh

    Note: The setup.sh script must be run from the folder in which it is located.
  3. Start the JRun4 server.

Accessing the Macromedia Pet Market Application

To access the Flash front-end on the server, enter a URL using your server name and port.

Note: You may need to change the HTTP address to fit your configuration. Make sure you type your server name and port number into the Pet Market address. For example: http://localhost:8100/PetMarket/store.html. If you want the full functionality of the Pet Store, you should run it on Sun's JDK 1.4.