877-277-2477
info@capstonecourseware.com

Tool Setup Instructions

Java 2 Platform, Enterprise Edition, Version 1.4_03

If the course you are setting up requires J2EE 1.4_03, follow these instructions to set it up on the student and instructor machines. If you have questions, please contact your courseware vendor.

First, note that the J2EE 1.4_03 SDK includes the J2SE 5.0 SDK. You will not need to set up the J2SE separately — indeed, you should not do so.

Second, you will find that the J2EE 1.4_03 SDK requires either Windows XP or the Windows 2000 Service Pack 3. If you do not already have this installed, you can find it easily at Microsoft's website.

The J2EE 1.4_03 SDK is a free download from Sun Microsystems:

http://java.sun.com/javaee/downloads/previous

Click the button labeled, "Download J2EE 1.4 SDK." You can store the installer anywhere on the student machine or perhaps a shared network drive or CD.

Run the installer and see the welcome screen:

Welcome

Accept the license agreement:

License Agreement

Install to the default path c:\Sun\AppServer:

Installation Directory

When asked for an admin password, enter "ccstudent"

Choose the radio button that makes the server prompt for admin credentials.

On this same screen, confirm that the admin port is 4848 and the HTTP port is 8080. Other port numbers are okay, but the defaults are best for classroom work. If any other ports are selected by the installer, be sure to tell the instructor what they are!

Admin Password

Don't register, don't create a samples directory, don't upgrade, don't create desktop shortcuts, but do add the J2EE bin directory to the executable path:

Options Ready to Install

On successful installation you'll click Finish and see a confirmation page in your default browser:

Success

After the installation is complete, set environment variables as follows.

  • J2EE_HOME to c:\Sun\AppServer
  • JAVA_HOME to c:\Sun\AppServer\jdk
  • PATH to include %JAVA_HOME%\bin as well as %J2EE_HOME%\bin (which was put there by the installer)

Test the environment as follows, from a new command console:

java -version

java version "1.5.0_nn" (nn may vary, this is fine)

...

asadmin start-domain domain1

Starting Domain domain1, please wait.

Log redirected to c:\Sun\AppServer\domains\domain1\logs\server.log.

(Pauses for a moment)

Domain domain1 is ready to receive client requests. Additional services are being started in background.

asadmin list --user=admin --password=ccstudent

WARNING: The --password option is insecure and should not be used since it can compromise your password. Please use either the command prompt or the --passwordfile option.

server

asadmin stop-domain domain1

Domain domain1 stopped.

(Server process should disappear.)