The J2EETM Tutorial
Home
TOC
PREV TOC 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 components is in the examples/src/ejb/converter directory. If you are viewing this online, you first need to download the tutorial bundle from:

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

Building the Example

To build the example code you'll need copies of the J2EE SDK and ant, a portable make tool. For more information, see 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. Please verify that the environment variables have been set to the values noted in the following table.

Table 2 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 directory of the J2EE SDK installation and the ant installation.

Starting the J2EE Server

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

j2ee -verbose 

Although optional, the verbose option is useful for debugging. To stop the server, type the following command:

j2ee -stop 

Starting the deploytool

The deploytool 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 f1.

Home
TOC
PREV TOC NEXT Search
Feedback