Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Automatically generating a JAR in a WAR
Automatically generating a JAR in a WAR [message #180321] Sat, 30 September 2006 13:04 Go to next message
Eclipse User
Originally posted by: ssl.radium.jvb.tudelft.nl

Hi,
WTP allows you to export a WAR of you web project, however, in putting
your classes inside the WAR, it puts my classfiles in the directory
structure under WEB-INF/classes. Instead of this, I'd like it to package
the classes in a JAR and put that in the WAR under WEB-INF/lib. Is there
any way to do this?
Regards,
Maarten
Re: Automatically generating a JAR in a WAR [message #180412 is a reply to message #180321] Mon, 02 October 2006 07:37 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
Put those classes in their own Java Project. Then, open the Properties
dialog of your web project and switch to the J2EE Module Dependences
page. Select the Java Project as a dependency of the web project. This
will accomplish what you want.

Cheers,
Larry

Maarten wrote:
> Hi,
> WTP allows you to export a WAR of you web project, however, in putting
> your classes inside the WAR, it puts my classfiles in the directory
> structure under WEB-INF/classes. Instead of this, I'd like it to package
> the classes in a JAR and put that in the WAR under WEB-INF/lib. Is there
> any way to do this?
> Regards,
> Maarten
>
Previous Topic:preferred mechanism for putting jars into shared/lib
Next Topic:J2EE/Web projects missing in New Project menu
Goto Forum:
  


Current Time: Thu Apr 17 23:45:10 EDT 2014

Powered by FUDForum. Page generated in 0.01955 seconds