File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes What is the classpath for Tomcat 5.5? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is the classpath for Tomcat 5.5?" Watch "What is the classpath for Tomcat 5.5?" New topic

What is the classpath for Tomcat 5.5?

Ayanik Sil

Joined: Sep 23, 2007
Posts: 27
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

Joined: Sep 25, 2007
Posts: 17
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

Joined: Sep 23, 2007
Posts: 27
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

Joined: Mar 22, 2005
Posts: 41016
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.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: What is the classpath for Tomcat 5.5?
Similar Threads
please help! classpath not working
What is the classpath for Tomcat 5.5?
Please Help. cannot compile Assertions
Problem Compiling Beer servlet example in HF
Compilation problem in servlets