Assuming Java (JDK + JRE) is installed on your system, follow these steps:
- Install Tomcat7
- Copy 'tools.jar' from 'C: \ Program Files (x86) \ Java \ jdk1.6.0_27 \ lib' and paste it into the folder 'C: \ Program Files (x86) \ Apache Software Foundation \ Tomcat 7.0 \ Lib " .
- Installation paths in environment variables as shown below:
C:> echo% path%
C:\Program Files (x86)\Java\jdk1.6.0_27\bin;%CATALINA_HOME%\bin;
C:> echo% classpath%
C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar; C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar;
C:> echo% CATALINA_HOME%
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0;
C:> echo% JAVA_HOME%
C:\Program Files (x86)\Java\jdk1.6.0_27;
Now you can verify that Tomcat is configured correctly by entering the following commands at a command prompt:
C:/>javap javax.servlet.ServletException C:/>javap javax.servlet.http.HttpServletRequest
He should show a bunch of classes
Now start the Tomcat service by double-clicking " Tomcat7.exe " under "C: \ Program Files (x86) \ Apache Software Foundation \ Tomcat 7.0 \ bin".
shasi kanth Feb 13 '14 at 9:44 2014-02-13 09:44
source share