The J2EETM Tutorial
Home
TOC
Index
PREV TOP NEXT Search
Feedback

Setting Up

Before you start developing the example application, you should follow the instructions in this section.

Getting the Example Code

The source code for the components is in j2eetutorial/examples/src/ejb/converter, a directory that is created when you unzip the tutorial bundle. If you are viewing this tutorial online, you need to download the tutorial bundle from

http://java.sun.com/j2ee/download.html#tutorial
 

Getting the Build Tool (ant)

To build the example code, you'll need installations of the J2EE SDK and ant, a portable make tool. For more information, see the section How to Build and Run the Examples.

Checking the Environment Variables

The installation instructions for the J2EE SDK and ant explain how to set the required environment variables. Verify that the environment variables have been set to the values noted in Table 2-1.

Table 2-1 Required Environment Variables
Environment Variable
Value
JAVA_HOME
The location of the J2SE SDK installation.
J2EE_HOME
The location of the J2EE SDK installation.
ANT_HOME
The location of the ant installation.
PATH
Should include the bin directories of the J2EE SDK, J2SE, and ant installations.

Starting the J2EE Server

To launch the J2EE server, open a terminal window and type this command:

j2ee -verbose
 

Although not required, the verbose option is useful for debugging.

To stop the server, type the following command:

j2ee -stop
 

Starting the deploytool

The deploytool utility has two modes: command line and GUI. The instructions in this chapter refer to the GUI version. To start the deploytool GUI, open a terminal window and type this command:

deploytool
 

To view the tool's context-sensitive help, press the F1 key.

Home
TOC
Index
PREV TOP NEXT Search
Feedback