Pentaho Tools :

Pentaho C-Tools(CDE,CDF,CDA),Pentaho CE & EE Server,OLAP-Cubes,Analysis using Pivot4J, Saiku Analytics, Saiku Reporting, Ad-hoc Reporting using Interactive Reporting Tool,Dashboards,Reports using PRD, PDD,Data Integration using Kettle ETL,Data Mining usign WEKA,Integration of Servers with Databases,Mobile/iPad compatible Dashboards using Bootstrap Css,Drilldown dashboards,Interactive Dashboards

Saturday, 27 October 2012

How to run Tomcat Server ? Issues like PATH, CLASSPATH and JRE_HOME for running tomcat server from command prompt

Hi Friends...

This is simple information but very useful for beginners of Tomcat users.

Versions Used:

Tomcat Server

Install the software's... After installation you can find them at
1)C:\Program Files\Java
2)C:\Program Files\Apache Software Foundation

Now Settings of  PATH, CLASSPATH, JRE_HOME for tomcat running

Step1: PATH setting.

Computer->Right Click->Properties-> Click on Advanced System settings->you can find a system properties pop up window->Click on Environment Variables-> Environment variable pop window comes ->

Now Observe:
System variables
Click on New-> Opens new System Variables-> give 
Variable name: PATH
Variable Value:C:\Program Files\Java\jdk1.6.0_31\bin

Click on OK.

Step2: CLASSPATH setting

Stay in Environment Variables pop up window only.
User variables for (your machine name) 

Click on New->  Opens new User Variable 
Variable name: CLASSPATH
Variable value:C:\Program Files\Java\jdk1.6.0_31\lib

Click on OK.

Step3: JRE_HOME for Tomcat   

Stay in Environment Variables pop up window only.
System Variable

Click on New->  Opens new User Variable 
Variable name:JRE_HOME
Variable value:C:\Program Files\Java\jdk1.6.0_31\jre

Click on OK.

NOTE: while giving JRE_HOME we should navigate to C:\Program Files\Java\jdk1.6.0_31\jre 
we should NOT navigate to C:\Program Files\Java\jre6 

 Tomcat sever starting through command Prompt:

Here we are going to run tomcat server from command prompt
Make sure you have to keep some points in mind about tomcat server.

In this tutorial I used  apache-tomcat-6.0.36 version of tomcat .. 

You can find the following folders here at C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36

like bin,conf,lib,logs, temp,webapps, work, LICENCE, NOTICE, .txt file

Tomcat port number:   
i) Go to the location: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\conf
ii) find server.xml file ->Open it
   we can find tomcat port number in this file like

<Connector port="8080" protocol="HTTP/1.1"
               redirectPort="8443" /> 

We can change tomcat port number.. This is needed why b'z, if we run oracle server on our machine it uses the same port number..

Now run the following command on command prompt:

   C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin>shutdown.bat

then it opens another window  which tells

Hurray..!!!! We succeed in running tomcat :

 NOTE:  The opned window should be stay untill we run/close shutdown.bat command on command prompt

NOTE:  We can observe startup.bat , shutdown.bat files at the following location.
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin

Not only these two but also some other files at the same location.

Now we are ready to View the home page of Tomcat

Type the following URL on any web browser 


Now we are able to see the tomcat home page


Thank you guys 

Featured Tutorial:
 i) Tomcat Usename and password issues
ii) A simple web application on ECLIPSE IDE.

BI developer