Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the classpath for Tomcat 5.5?

 
Ayanik Sil
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am using Tomcat 5.5. Can you tell me that what should be in the classpath?
This is my present classpath.

"C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\commons-el.ja
r";"C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jasper-run
time.jar";"C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\nam
ing-factory-dbcp.jar";"C:\Program Files\Apache Software Foundation\Tomcat 5.5\co
mmon\lib\jasper-compiler.jar";"C:\Program Files\Apache Software Foundation\Tomca
t 5.5\common\lib\jsp-api.jar";"C:\Program Files\Apache Software Foundation\Tomca
t 5.5\common\lib\naming-resources.jar";"C:\Program Files\Apache Software Foundat
ion\Tomcat 5.5\common\lib\jasper-compiler-jdt.jar";"C:\Program Files\Apache Soft
ware Foundation\Tomcat 5.5\common\lib\naming-factory.jar";"C:\Program Files\Apac
he Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar";

Should any change needs to be done here?
 
sarada chellu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean how to run the tomcat ?
If your trying to run the tomcat just open command prompt eg: C:\Program Files\apache-tomcat-5.5.23\bin>startup.bat
 
Ayanik Sil
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,thanks for replying.
My question is
can i put
C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\*jar

in the classpath without mentioning all the jar files seperately?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two points:

1) Tomcat does not use the classpath environment variable, so in order to run Tomcat you don't need (and should not) put all its jar files into the classpath.

2) You can't have something like "*.jar" in the classpath. All jar files need to be explicitly mentioned.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic