where to put java class in eclipse?
1 posts in topic
Flat View  Flat View

Posted By:   surendra_kumar
Posted On:   Friday, December 28, 2007 12:55 AM

I am using eclipse 3.1 and tomcat 5.5,i am building a J2EE dynamic web application.In project explorer view there are src and build folder under my project,now i m confused where i build my servlet and model class?build or src?

Re: where to put java class in eclipse?

Posted By:   Stephen_McConnell  
Posted On:   Friday, December 28, 2007 05:36 PM

Your source files will go under src. When you create a package, it will set up the appropriate folder structure under that folder for your packages etc etc.

Where you put your classes is optional. You can compile your classes in a "classes" folder.

I create a folder called Web-App to put the web JSP's and configuration files and Web-Inf directory.

Actually, I use the MyEclipseIde plug-in and it builds the project for me and deploys it to the server in the correct format and place. It's well worth the price of the plugin for the features it has. I don't think I've used Ant to deploy a project in years.

Stephen McConnell

About | Sitemap | Contact