Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse's output folder

 
Javier Pascual
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've written a little application with Struts 2 in Eclipse.

Now I want to create a WAR file to distribute my app so I selected File -> Export -> WAR file.

The problem is that Eclipse doesn't copy the classes to /WEB-INF/classes. They are at the root of the WAR.

Is there a way to indicate Eclipse that I want the classes files in that folder?

Thank you.
 
Javier Pascual
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, in the properties for the project I already have /WebContent/WEB-INF/classes as Default output folder in Java Build Path -> Source

So I don't get it. I don't see why Eclipse puts the classes in the root folder
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe ask in a group/list/forum/etc. that deals with Eclipse?
 
Javier Pascual
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Maybe ask in a group/list/forum/etc. that deals with Eclipse?

Oh, I didn't see the IDE sub forum. Thanks David.

I hope someone can help me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic