# starting up of tomcat in windows 7

kiran kumar reddy
Ranch Hand
Posts: 94
tomcat is working fine in windows xp for me. for now i have to work in windows 7 so i cant make it start ie. tomcat in windows 7. i downloaded apache-tomcat-6.0.35 and extract that in my c drive and i have java installed in my windows 7 when i tried to start tomcat, one command windows just flashes up for a milli sec and will gone. how can i start/run tomcat in windows 7.

li lianghong
Greenhorn
Posts: 11
check the JAVA_HOME and CATALINA_HOME was setted!

Karn Kumar
Ranch Hand
Posts: 153
Hi Kiran,

Please check your JAVA_HOME as li lianghong suggested , sometime back i also got same issue .

This may accure because my java was installed in the "C:\program files\java" . So in the startup.bat even though i have given set JAVA_HOME="C:\Program Files\jdk1.6.0_24" it was not able to take it. One observation i found in my friends system is , Java was in C:\Java6\jdk1.6.0_24" So it was working fine with set JAVA_HOME="C:\Java6\jdk1.6.0_24". So the issue may be directory name with space.
Finally i commented set JAVA_HOME="C:\Program Files\jdk1.6.0_24" and set it in system environment variables and now it is working fine.

Thanks....

- Chetan

kiran kumar reddy
Ranch Hand
Posts: 94
li lianghong wrote:check the JAVA_HOME and CATALINA_HOME was setted!

thank you it worked