• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set the class path for tomcat?

 
adachi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic