This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
Author

What is the classpath for Tomcat 5.5?

Ayanik Sil
Greenhorn

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
Greenhorn

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
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
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
 
wood burning stoves
 
subject: What is the classpath for Tomcat 5.5?