File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse putting classes in wrong directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse putting classes in wrong directory" Watch "Eclipse putting classes in wrong directory" New topic
Author

Eclipse putting classes in wrong directory

Bill Gunn
Greenhorn

Joined: Jul 14, 2006
Posts: 12
When I create a dynamic web project with Tomcat as my runtime, Eclipse creates a build directory. The problem is, none of these classes ever make it into WEB-INF/classes, so Tomcat can't find them when I choose "Run on server". What am I doing wrong?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16020
    
  20

Setup your project so that the build directory is WEB-INF/classes!

Normally, however, I build webapps with Ant, since I need to merge in other stuff and I've found that it's much safer to keep directories that I change separate from the directories that the tools change. There's ways to gimmick up Eclipse so that it will do pretty much everything my Ant build scripts do, but I've never made the effort.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse putting classes in wrong directory