This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse's output folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Watch "Eclipse New topic
Author

Eclipse's output folder

Javier Pascual
Greenhorn

Joined: Jan 07, 2007
Posts: 8
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

Joined: Jan 07, 2007
Posts: 8
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

Joined: Sep 29, 2008
Posts: 12617

Maybe ask in a group/list/forum/etc. that deals with Eclipse?
Javier Pascual
Greenhorn

Joined: Jan 07, 2007
Posts: 8
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse's output folder
 
Similar Threads
Cannot get Struts 2 to Work
Where to put war file
where to put .WAR files on server?
Runnable jar is not including the files
where to add web.xml