This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to specify classpath/tomcat ?  RSS feed

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!