In this chapter, we will put all the pieces together that are required to configure a complete J2EE
platform. Note that you can find a more detailed description in the documentation provided with each
software component.
3.1. Setting Up Your Java Environment
To set up your Java environment, you must set the value for
vironment variable.
subdirectory of the SDK.
Assuming that you installed the SDK in the
•
the following:
bash> export JAVA_HOME=/usr/local/jdk1.4.2
You then have to update your PATH variable by appending
•
has been properly set, you can proceed as follows:
JAVA_HOME
bash> export PATH=${PATH}:${JAVA_HOME}/bin
Environment variables must be correctly set at all times. It is common practice to insert these com-
mands in your shell start file (
3.1.1. Configuring Ant
You have to set the
ANT_HOME
Assuming that you installed Ant in the
command:
bash> export ANT_HOME=/usr/share/ant
Note
Make sure that the
installed in
/usr/bin
Warning
If you want Ant to automatically set the
JAVA_HOME environment variable as described in Section 3.1 Setting Up Your Java Environment.
Configuring Your Environment
must point to the SDK directory and
JAVA_HOME
~/.bashrc
environment variable and update your
/usr/share/ant
executable is available through the
ant
.)
JAVA_HOME
/usr/local/jdk1.4.2
).
directory, you should enter the following
variable, you have to correctly set your
CLASSPATH
Chapter 3.
and update the
must point to the
PATH
directory, you should enter
/usr/local/jdk1.4.2/bin
variable.
PATH
. (Usually the
PATH
ant
en-
PATH
bin
. If
executable is
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers