File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to set the class path for tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to set the class path for tomcat?" Watch "how to set the class path for tomcat?" New topic
Author

how to set the class path for tomcat?

adachi
Greenhorn

Joined: Jun 26, 2001
Posts: 9
I just setup tomcat for my JSP server. I have a JSP program which has some class files involved, and I put them into the same directory. However, the JSP enginee always tell me that the class file was not found. Where should I put the class??
Thanks!
Tim May
Greenhorn

Joined: Sep 27, 2001
Posts: 1
adachi,
Here is a great step by step website on setting up Tomcat and testing your JSP and Servlets.
http://archive.coreservlets.com/Using-Tomcat.html
Hope this helps.
Tim
Broomfield, CO
adachi
Greenhorn

Joined: Jun 26, 2001
Posts: 9
Hi, Tim May,
I've already follow all the steps from the web site you've mentioned, but the class file still not found.
"D:\jakarta-tomcat-3.2.3\webapps\ROOT\WEB-INF\classes\jsp\SQLBridge.class does not contain type jsp.SQLBridge as expected, but type SQLBridge"
Is that right if I put the class file under
"D:\jakarta-tomcat-3.2.3\webapps\ROOT\WEB-INF\classes\"
OR, any suggestion for what I am doing wrong?
Thanks for your help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

The package name's components are part of the required directory structure, so what you're doing would only work if the class source code had a "package jsp;" statement in it. Otherwise, it's just D:\jakarta-tomcat-3.2.3\webapps\ROOT\WEB-INF\classes\
It's just normal Java classpath structure, no magic required.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to set the class path for tomcat?