This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes where to put .java file in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

where to put .java file in tomcat

santoo ujjire
Greenhorn

Joined: Jul 06, 2005
Posts: 3
hi,

where to put .java files in tomcat directory

Thanks,
pop
Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
Hi pop,

Which version are you using now? In tomcat 5.0, you should put in the following location.

Tomcat 5.0\webapps\servlets-examples\WEB-INF\classes
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You don't put .java files in Tomcat.

You need to compile your source files into .class files.
To learn where to put your class files, read this:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

This is essentially part of the same question that you asked here. Please continue discussion in that thread.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to put .java file in tomcat
 
Similar Threads
servlets
JAVA BEANS
Location of MySQL Connector jar
Trouble connecting to JDBC
how to create applet and run in eclipse