Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Environment variables for Tomcat in Windows XP

 
Rida Abrahams
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should be a servlet.jar in the tomcat lib directory... add that to ur classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic