aspose file tools*
The moose likes JSP and the fly likes Accessing classes in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Accessing classes in Tomcat" Watch "Accessing classes in Tomcat" New topic
Author

Accessing classes in Tomcat

Tim Eyre
Greenhorn

Joined: May 20, 2002
Posts: 20
I am running Tomcat in UNIX, and have put a jar file called jconn2.jar in WEB-INF/lib. This contains the JDBC drivers needed.
In my JSP I import com.sybase.jdbcx.SybDriver, but when I run the JSP it says "Class not found in import".
Is the WEB-INF not the correct location for this file?
Thanks
Tim
inam paki
Greenhorn

Joined: Jul 30, 2002
Posts: 14
Hi Tim;
lib folder is always contained inside web-inf.
U put it in the right place.
U can do it in another way.
put ur .jar file in
....\jdk\jre\ext\lib
now it will be available to any .class.


inampaki
Tim Eyre
Greenhorn

Joined: May 20, 2002
Posts: 20
Thanks Inam, my problem was that I needed to stop and restart tomcat.
Thanks
Tim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing classes in Tomcat