Latest News

Tuesday, March 28, 2017

Installation of Apache web server for JAVA Web Programming

1. Download apache server from here..
              https://www.apache.org/dyn/closer.cgi

2. Extract the folder and you will get following files in apache folder(in my case my folder name is apache-tomcat-6.0.37)

Extracted files



3. Now copy the Apache folder and paste it in the C drive(it must be your system drive).

     In my case PATH:C:\apache-tomcat-6.0.37.

4. Now in order to access server first of all you need to set path for JDK.
if you don't have JDK installed in your machine first install JDK from here..JDK

Now set path variable for JDK.

* Go to My computer and right click on it and select properties.



*On next screen select Advance System Setting.


*On next screen select Advance tab and choose Environment Variable.


* Then select new variable as follow.


* Then fill the field by following path.


For JDK path go through your C drive and look for the following path
C:\Program Files\Java\jdk1.8.0_101
if your machine jdk is located here than use this path as shown in above figure and click ok.

5. So if you already have JDK setup than after step 4 just move here...
   For apache server your machine should have CATALINA variable.
   To set path for CATALINA see following figure.


6. Now just try to run your JAVA web program using this server it could work.

See sample i created one web app:



WebPage of  Program