Tips on IPP #1
In this page, you will learn to install J2EE 1.4 (including JDK) and Apache Tomcat 5.0.28 on your
platform. We will assume that you are using Windows XP for installation.
J2EE 1.4 Installation
- Download J2EE 1.4 SDK (link)
- Download All-in-one bundle
- Install the downloaded file
- Setting Environment Variables
- JAVA_HOME setting
- Open 'Control Panel'
- Open 'System'
- Click on 'Advanced' tab
- Click 'Environment Variables'
- In the 'System variables' section, click 'New' icon
- Variable name = JAVA_HOME, Variable value =
C:\Sun\AppServer\jdk
- PATH setting
- Go thorough the step 1~4 in the above
- In the User variables section, click on 'PATH' and click 'Edit'
- Add 'C:\Sun\AppServer\jdk\bin' at the end of PATH variable
Apache Tomcat 5.0.28 Installation
- Download Tomcat 5.0.28 (link)
- Setup Tomcat
- See the introduction (link)
- If you click on the downloaded file, you will roughly see the
following steps.
- You will choose the directory where the Tomcat goes. (Leave as
it is)
- Make sure that the port number for HTTP/1.1 Connector is 8080.
- Set up an administration login: user name and password
- You will choose the directory where the Java Virtual Machine
goes. (Leave as it is)
- If you finish Tomcat installation, you will see an icon at Windows tray
on your right-bottom location.
- Right-Click on that tray icon, then you will see the menu 'Start
service'.
- Then, click on the 'Start service' menu. (You will see some starting
message.)
- Once the service started successfully, then the icon colour will
turn into green.
- Test your Tomcat
- Open your web browser and type "http://localhost:8080"
- Can you see any page? What can you see?
- You will see some greeting message for Apache Tomcat 5.0.28
- Write a test code (calculator example in Lecture 2)
- Store calculator.htm in C:\<your_Tomcat_directory>\webapps\jsp-examples
- Store adder.jsp in C:\<your_Tomcat_directory>\webapps\jsp-examples
- Test JSP
- If everything goes OK, you will see the result (e.g., if you typed 10
and 20, then you will see '10+ 20 = 30' on your web browser.)
- If you have found any problem, please let us know by sending an e-mail
to [email protected]
<Back to Home>