aspose file tools*
The moose likes Servlets and the fly likes Setting Environment variables for Tomcat in Windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting Environment variables for Tomcat in Windows XP" Watch "Setting Environment variables for Tomcat in Windows XP" New topic
Author

Setting Environment variables for Tomcat in Windows XP

Rida Abrahams
Greenhorn

Joined: Jan 25, 2004
Posts: 23
Hi,
I've installed J2SE SDK 1.4.1_02 on Windows XP professional. I've also installed Tomcat 4.0.1. I've managed to set up the Path and Classpath variables successfully for J2SE. How do I add the path and classpath variables for tomcat to my existing path and classpath variables. Your prompt response would be highly appreciated.
Thanks.
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
Add a new environment variable named CATALINA_HOME to your environment(if it does not exist already) and its value should be the path of directory where you installed the Tomcat.
I have only used tomcat 4.1.27, its binary sets up catalina home itself, coz i dont remember specifically setting it.... it was years ago though and my memory is short
http://www.takka.com.hk/en/jspmysql/installjspsql.htm
[ January 25, 2004: Message edited by: pervaiz gul ]
Rida Abrahams
Greenhorn

Joined: Jan 25, 2004
Posts: 23
Thanks, I've added the CATALINA_HOME variable, but when I complile my servlet, I get an error which is something to this effect: package javax.servlet not found. How do I set the Path variable for tomcat as well as the classpath.
Thanks.
Gul Khan
Ranch Hand

Joined: Sep 03, 2003
Posts: 173
There should be a servlet.jar in the tomcat lib directory... add that to ur classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting Environment variables for Tomcat in Windows XP