Installing JDK and Tomcat: Vijayan Sugumaran Department of DIS Oakland University
Installing JDK and Tomcat: Vijayan Sugumaran Department of DIS Oakland University
Vijayan Sugumaran
Department of DIS
Oakland University
Downloading JDK
JDK 6 (J2SE v1.6.0_03) installer can be downloaded
from the following url:
http://java.sun.com/javase/downloads/index.jsp
Click on the Download button
Click on Accept (license agreement) and continue
Click on the link for online installation:
Windows Online Installation, Multi-language
Run the installer
Accept all the default settings. It will create a new
directory (C:\Program Files\Java\jdk1.6.0_03) and there
will be a subdirectory called “bin” which contains all the
jdk tools (javac, java, etc.). There will also be another
subdirectory called “lib” that contains the .jar files
Setting Environment Variables
In order to access the java binary files
from any directory, we should set the
PATH environment variable
To access .class files from other
locations, we need to set the
CLASSPATH variable.
The CLASSPATH variable can also
indicate where to look for .jar files
Setting Path and Classpath
Right mouse click on “My Computer” and select the
“Properties” option
The system properties panel will pop up. Click on the
“Advanced” tab.
Click on the “Environment Variables” button
If the Path and Classpath variables are already
defined, then you can add values at the end by
clicking on the “Edit” button.
The directories are separated by semicolon
If the variables don’t exist, then you can create them
by clicking on the “New” button, and enter the values
for those variables (see next slide)
The first value for the classpath variable should be
“.;” that indicates current directory
System Properties Panel
Downloading and Installing
Tomcat
Download url:
http://tomcat.apache.org/download-60.cgi
Scroll down to the Binary Distributions
section and click on the zip link under
Core to download tomcat 6.0.14.
The downloaded zip file needs to be
unzipped. You can put the contents under
Program Files or anywhere else you like.
Configuring Tomcat
Make sure the “JAVA_HOME” environment
variable exists. If not, create this variable and
set it to C:\Program Files\Java\jdk1.6.0_03 (or
the directory where jdk resides)