You must install a web server, such as
Apache Tomcat, before you can complete the steps in this lesson. You can
download Apache Tomcat from
http://www.apache.org.
To run a dynamic web project, you must
configure a server runtime environment, and define a server. You only need to
do this once for your workspace. This lesson shows how to configure an Apache
Tomcat server runtime environment.
Click
Window > Preferences.
The
"Preferences" window appears.
Expand
Server,
select
Runtime
Environments, and click
Add.
The
"New Server
Runtime" wizard appears.
Expand
Apache,
select the version of your Apache Tomcat Server, and click
Next.
On the
"Tomcat
Server" page, click
Browse to locate the folder where Apache Tomcat Server is installed
and click
OK.
In the
JRE box,
click an installed JRE. If no JREs are installed, add one as follows:
a. Click Installed JREs.
The
"Preferences" window appears.
b. In the
"Preferences" dialog box, click
Add .
The
"Add
JRE" wizard appears.
c. In the
JRE
type list, select
Standard
VM, and click
Next.
d. Click
Directory, locate a directory
that contains a JDK, and click
OK.
The
JRE
home box,
JRE
name , and the
JRE system
libraries list is populated with values.
e. Click
Finish, and click
OK to
close the
"Preferences" dialog box.
Click
File > New > Other.
The
"New"
wizard appears.
Expand theServer folder, select
Server,
and click
Next.
Type
localhost
in the
Server's host
name box, and click
Finish.
A new Apache Tomcat server and server
runtime environment is added to your workspace.