« Return to Thread: completing the web project in netbeans

RE: JAR from WebApplication Project

by Ho, Michelle M. :: Rate this Message:

Reply to Author | View in Thread

Júnior,
 
You can pull your class out of your web application and create a java library.  When you complie the library, you will get a .jar.  Then use this library (.jar) in your web application. 
 
Michelle


From: Júnior - iB [mailto:junior@...]
Sent: Monday, June 09, 2008 8:44 AM
To: nbj2ee@...
Subject: Re: [nbj2ee] JAR from WebApplication Project

I have a web application with the class Product.
And I want to use that class in other web application.


Sean Chen wrote:
The question is why do you want a jar, not a war. It doesn't make much sense.

On Mon, Jun 9, 2008 at 8:01 AM, Júnior - iB junior@... wrote:
  
How do i generate a .JAR for a Web Application?
By default it generates .WAR, but I need a .WAR and a .JAR to the same
project.

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; pt_BR (nb)

Thanks,
Júnior.


    


  

 « Return to Thread: completing the web project in netbeans

LightInTheBox - Buy quality products at wholesale price!