• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to set the class path for tomcat?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic