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 fromhttp://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
antexplain 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
The location of the J2SE SDK installation.
The location of the J2EE SDK installation.
The location of the
Should include the
bindirectories of the J2EE SDK, J2SE, and
Starting the J2EE Server
To launch the J2EE server, open a terminal window and type this command:j2ee -verbose
Although not required, the
verboseoption is useful for debugging.
To stop the server, type the following command:j2ee -stop
Starting the deploytool
deploytoolutility has two modes: command line and GUI. The instructions in this chapter refer to the GUI version. To start the
deploytoolGUI, open a terminal window and type this command:deploytool
To view the tool's context-sensitive help, press the