Code Comments
Programming Forum and web based access to our favorite programming groups.I agree with Sean. You can create a single library (or multiple where it ma kes sense) with multiple packages. You can dump any "shared" code into the library, organizing the code with packages. Then you can use the library wi th any web app you develop. Michelle ________________________________ From: Júnior - iB [mailto:junior-eX+1FYolXPxi3DnVkjdj9gh0onu2mTI+@public.gma ne.org] Sent: Monday, June 09, 2008 10:13 AM To: nbj2ee-gVrGfPuBK2Jg9hUCZPvPmw@public.gmane.org Subject: Re: [nbj2ee] JAR from WebApplication Project Michelle, Vince, Victor... Actually I am using my classes out of my web application. And I´m having to create two Project: a "Java Class Library" for each "Web A pplication". I would like to create just one (but, of course, I would like to include thi s one in others). Take a look in 'contas' at attachments. Thanks. Ho, Michelle M. wrote: Júnior, You can pull your class out of your web application and create a java librar y. When you complie the library, you will get a .jar. Then use this librar y (.jar) in your web application. Michelle ________________________________ From: Júnior - iB [mailto:junior-eX+1FYolXPxi3DnVkjdj9gh0onu2mTI+@public.gma ne.org] Sent: Monday, June 09, 2008 8:44 AM To: nbj2ee-gVrGfPuBK2Jg9hUCZPvPmw@public.gmane.org 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-eX+1FYolXPxi3DnVkjdj9gh0 onu2mTI+@public.gmane.org> <mailto:junior-eX+1FYolXPxi3DnVkjdj9gh0onu2mTI+@p ublic.gmane.org> 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.
Post Follow-up to this messageYou just have to create one "Java Class Library", then add it to every Web Project where you need it 2008/6/9 Sean Chen <zyschen@gmail.com>: > Don't quite understand what you mean, but you should create a common > library for both web projects instead of duplicating a class in two > different libraries. > > On Mon, Jun 9, 2008 at 1:13 PM, JĂşnior - iB <junior@infobusiness.com.br> > wrote: > "Web > this > -- Victor M. Ramirez A. Ingeniero de Sistemas Universidad del Norte http://vramirez.wordpress.com
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.