Meaningless Drivel is fun!*
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
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: 15952
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse putting classes in wrong directory
 
Similar Threads
where do i put the bean?
foobar/work accessible to everybody ?!
Trouble restarting Tomcat 6.0.30 with Eclipse
servlet programming problem in Eclipse
Eclipse + Lomboz problem