Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Eclipse store generated servlet files for Tomcat?

I'm using Eclipse Java EE IDE and launch Tomcat from the Server's tab on Eclipse.

Where does Eclipse store generated servlet .java files for JSP files? I've checked the Tomcat installation directory, but nothing there.

Thanks.

like image 780
Tom Tucker Avatar asked Dec 28 '10 05:12

Tom Tucker


People also ask

Where does Tomcat store servlet server?

The servlet source files are kept under " <CATALINA_HOME>\webapps\examples\WEB-INF\classes ", together with the compiled classes. To run the examples, start Tomcat server.

Where are the compiled Jsps stored in Tomcat?

JSP on Tomcat Generated Java source code as well as compiled classes are stored in <tomcat_home>/work/Catalina/localhost/<application_name>.

Where are JSP files located?

The JSP translated files are stored (in Tomcat) in /work/Catalina/localhost/[your_app_context]/org/apache/jsp/ .


Video Answer


1 Answers

Doubleclick the server entry in Servers view and check the path represented by Server path. Explore in there from inside the workspace directory. The generated classes are there.

alt text


If you choose the 2nd option Use Tomcat installation, then it will be available Tomcat's /work folder, there where you expected it to be.

like image 89
BalusC Avatar answered Oct 04 '22 05:10

BalusC