aspose file tools
The moose likes Beginning Java and the fly likes Setting classpth for jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Setting classpth for jar files" Watch "Setting classpth for jar files" New topic
Author

Setting classpth for jar files

Nithish Yalamanchili
Greenhorn

Joined: Aug 16, 2007
Posts: 24
Hai

Iam having multiple jar files(servlet-api.jsp-api,mysql-conn..) in Tomcat/common/lib.

How to set classpath for 2jar files in environment variables .
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

To set a classpath for a JAR file, you need to include the JAR name, e.g.
$TOMCAT_HOME/common/lib/servlet-api.jar:$TOMCAT_HOME/common/lib/jsp-api.jar, etc etc.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Setting classpth for jar files
 
Similar Threads
ClassNotFoundException
invalid CEN header (bad signature)
Which part of Java is sexy for you?
Taglib file outside WEB-INF
error in servlet