Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19533
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: a question about creating the JAR file |
| Date | Sat, 27 Oct 2012 17:20:33 +0200 |
| Organization | albasani.net |
| Lines | 29 |
| Message-ID | <k6gu3q$655$1@news.albasani.net> (permalink) |
| References | <c34600e7-78d9-44a5-a79c-ee804ed992e2@googlegroups.com> <af2agsFbm4U1@mid.dfncis.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.albasani.net sOmhSN8xM0BLwH2PHiBaQJ2u8mviDksgbqXRr3qdSiMHCi3VYqy/TLcOyNdDRbvgd1nCCXfP1UAxBQaFjwE8ErtfVkVUoMtiik9CQvRBnECjjJ06Iz1rOmE3Xzls4SsC |
| NNTP-Posting-Date | Sat, 27 Oct 2012 15:20:26 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="gdX1UYkv3F/H6+BpPH3JS4SXn6q8WzsdTB/U9d7ogiW2hdRMO3PMZyqeVbMkcs5zvzV0WlzU5DpUtriBzXw5BeojeGGLVTJ9LKq0JzboohKThTP4eZPOKSAU9dEGqMXV"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121011 Firefox/16.0 SeaMonkey/2.13.1 |
| In-Reply-To | <af2agsFbm4U1@mid.dfncis.de> |
| Cancel-Lock | sha1:ql518D2Kecq5+B1CQHh4XMWOnTM= |
| Xref | csiph.com comp.lang.java.programmer:19533 |
Show key headers only | View raw
Sven Köhler schrieb:
> Now method (2) has gained popularity. Probably, because "big fat JAR
> plugins" for several IDEs exist (at least for Eclipse this is true).
> However, I think this method should be avoided for any big application.
I agree. If your .jar file is an application (something you
double click on the desktop provided your environment has the
right association for .jar extension), then this comes handy.
But I also see the following advantage of 2): When your .jar file
is an API collection, and you want to allow access to the API of
multiple .jars. Then I doubt method 1) works.
Here is the scenario:
util1.jar: Provides class A
util2.jar: Provides class B
I want to make superutil.jar that provides class A and B
so that I can compile against it, i.e.:
javac -cp superutil.jar ....
I guess javac does not understand the Class-Path: manifest
attribute. Right? So you would need to unpack/pack the two
.jars into one .jar. I guess you can use something along the
fileset in the jar ant task for this purpose, no need to
buy an expensive tool.
Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
a question about creating the JAR file zyng <xsli2@yahoo.com> - 2012-10-26 13:58 -0700
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-26 14:14 -0700
Re: a question about creating the JAR file zyng <xsli2@yahoo.com> - 2012-10-31 12:41 -0700
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-31 15:19 -0700
Re: a question about creating the JAR file Sven Köhler <remove-sven.koehler@gmail.com> - 2012-10-27 16:54 +0200
Re: a question about creating the JAR file Jan Burse <janburse@fastmail.fm> - 2012-10-27 17:20 +0200
Re: a question about creating the JAR file Jan Burse <janburse@fastmail.fm> - 2012-10-27 17:24 +0200
Re: a question about creating the JAR file Sven Köhler <remove-sven.koehler@gmail.com> - 2012-10-27 19:06 +0200
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-28 09:44 -0700
Re: a question about creating the JAR file Roedy Green <see_website@mindprod.com.invalid> - 2012-11-01 18:26 -0700
csiph-web