• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

how to specify classpath/tomcat ?

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do i include this in startup.sh or shutdown.sh ?
could u please tell me the position and the exact line of code i need to enter ..
say the file i need to access is here
tomcat/webapps/ROOT/myusers/One.java
I cannot put this class in WEB-INF/classes ... so i need to set the classpath to refer to this one
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you want to have a .java source code file in the classpath? Classpath is only used by the JVM to load compiled classes.
Compiled classes that are used in web application servlets and JSP must be stored according to the servlet API conventions.
Also, I think Tomcat 3 and Tomcat 4 have different conventions about how Tomcat picks up classes that are available to the whole system.
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic