Forums Register Login

how to specify classpath/tomcat ?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Can't .... do .... plaid .... So I did this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 886 times.
Similar Threads
mdotting vs Tomcat part 2
Problem compiling Servlet
import javax.servlet.*;
can not find javax.servlet.AsyncContext
package doesn't exists
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:48:53.