Apache Tomcat on Windows Vista

I have installed Apache Tomcat 6.0 on my Vista Home to run Servlets. A normal windows service installer (.exe) didn't work on my Vista. It works for once but u can't even start tomcat after reboot. After some googling, I found one gentleman who advice to download tomcat (.zip) file instead of *.exe . With that advice together with all the step by step tutorial from Configuring & Using Apache Tomcat 6, finally the Apache Tomcat 6 is up and running fine on my vista. That long tutorial can give you a headache, but following each and every step will guide you to the end!!

Setting Environment variables
Start -> Control Panel -> Systems -> Change Settings -> Advanced Tab -> Environment variables

Edited environment variables

CLASSPATH C:\apache-tomcat-6.0.13\lib\servlet-api.jar;C:\apache-tomcat-6.0.13\lib\jsp-api.jar;C:\Servlets;
JAVA_HOME C:\Program Files\Java\jdk1.6.0_02
TOMCAT_HOME C:\apache-tomcat-6.0.13
PATH xxxxxxxxx ;C:\Program Files\Java\jdk1.6.0_02\bin;

Connecting to MySQL
I'm using mySQL so I also need a JDBC driver.
1. download it from MySQL Connector/J
2. There are 2 places to put it
a. Place the mysql-connector-java-5.1.7-bin.jar under yourDevelopmentFolder/lib (or)
b. Place mysql-connector-java-5.1.7-bin.jar under TOMCAT_HOME/lib


--So, don't believe if people says Windows Vista sucks for programming environment. When there is a will, there is a way!--


~ Happy Programming ~

4 comments:

blueeyes said...

good one dude..thanks..tis s y i like googlin....keep n helping others

သဉ်ဇာ - Thinzar said...

blueeyes>> I'm glad to know at least someone is getting something from this :)

Sebastián Gómez Morales said...

is your vista 32 or 64 bits ?

သဉ်ဇာ - Thinzar said...

mine is 32-bits

Post a Comment

Please feel free to use any font to comment :)