Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: JAR from WebApplication Project
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.
	
	
 

	
	
 



Report this thread to moderator Post Follow-up to this message
Old Post
Ho, Michelle M.
06-10-08 01:05 AM


Re: JAR from WebApplication Project
You 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

Report this thread to moderator Post Follow-up to this message
Old Post
Victor Manuel Ramirez
06-10-08 01:05 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): « 1 [2]
Search this forum -> 
Post New Thread

Netbeans J2EE archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:02 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.