877-277-2477
info@capstonecourseware.com

Tool Setup Instructions

Java Platform, Enterprise Edition, Version 5.0_02

If the course you are setting up requires Java EE 5.0_02, 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 Java EE 5.0 SDK includes the Java SE 6.0 SDK. You will not need to set up the SE JDK separately — indeed, you should not do so.

The Java EE 5.0_02 SDK is a free download from Sun Microsystems:

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

Under the heading, "Java EE 5 SDK Update 2," click the button labeled, "Download with JDK." Choose the Windows version of the 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\SDK:

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

Ready to Install

Success

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.

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

Open the file c:\Sun\SDK\domains\domain1\config\domain.xml and edit as follows. Search for the string "<jms-host" and you will find a text line like this:

<jms-host admin-password="admin" admin-user-name="admin" host="host-name" name="default_JMS_host" port="7676"/>

Replace the specific host name with the string "localhost", so that the line reads as follows:

<jms-host admin-password="admin" admin-user-name="admin" host="localhost" name="default_JMS_host" port="7676"/>

Save the file.

Open the file c:\Sun\SDK\domains\domain1\config\sun-acc.xml and edit as follows. Search for the string "<target-server" and you will find a text line like this:

<target-server name="host-name" address="host-name" port="3700"/>

Replace both occurrences of the specific host name with the string "localhost", so that the line reads as follows:

<target-server name="localhost" address="localhost" port="3700"/>

Save the file.

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

java -version

java version "1.6.0" (later version numbers are okay)

...

asadmin start-domain domain1

Starting Domain domain1, please wait.

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

(Pauses for a moment, then produces several lines ending with the following:)

Domain listens on at least following ports for connections:

[8080 8181 4848 3700 3820 3920 8686 ].

asadmin stop-domain domain1

Domain domain1 stopped.