• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse putting classes in wrong directory

 
Bill Gunn
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic