Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22438
| Date | 2013-02-22 09:05 +0000 |
|---|---|
| From | lipska the kat <"nospam at neversurrender dot co dot uk"> |
| Organization | Trollbusters 3 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: two JARs |
| References | <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> |
| Message-ID | <FMednQp8ufV8qbrMnZ2dnUVZ8jednZ2d@bt.com> (permalink) |
On 21/02/13 22:30, bob smith wrote: > I downloaded the JBox2d library, and I see that there are two JARs: one that ends in the name "sources" and one that doesn't. > > > jbox2d-library-2.1.2.3-sources.jar > jbox2d-library-2.1.2.3.jar > > > Can someone help me understand exactly what a seasoned Java programmer would expect to be in each of these JARs? I'm a little confused. I don't know which one to use. To look inside a jar file you can use the jar application distributed with your jdk jar -tf <filename> from a terminal prompt lists the contents of a jar file to standard out by default on my Linux system I would do $ jar -tf jbox2d-library-2.1.2.3.jar > foo.txt this would dump the listing into a text file that I could inspect later I imagine Windows has a similar redirection feature. You don't need winzip or foojar or winjar or winfoo or any other piece of frippery, your jdk comes with everything you need. I would expect jbox2d-library-2.1.2.3.jar to contain .class files plus possibly some optional properties or config files I would expect jbox2d-library-2.1.2.3-sources.jar to contain .java source files. Now wait a minute ... yep, that's what I see. There is some maven crap in the library but the source jar is all java source code. You would use jbox2d-library-2.1.2.3.jar in your classpath. BTW you can also use jar to unpack zip files. HTH lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
two JARs bob smith <bob@coolfone.comze.com> - 2013-02-21 14:30 -0800
Re: two JARs Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-21 14:44 -0800
Re: two JARs Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-21 14:58 -0800
Re: two JARs Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-21 19:12 -0400
Re: two JARs markspace <markspace@nospam.nospam> - 2013-02-21 15:34 -0800
Re: two JARs Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-21 19:45 -0400
Re: two JARs markspace <markspace@nospam.nospam> - 2013-02-21 16:29 -0800
Re: two JARs Roedy Green <see_website@mindprod.com.invalid> - 2013-02-21 15:25 -0800
Re: two JARs Lew <lewbloch@gmail.com> - 2013-02-21 18:25 -0800
Re: two JARs Roedy Green <see_website@mindprod.com.invalid> - 2013-02-21 23:59 -0800
Re: two JARs Magnus Warker <warker@mailinator.com> - 2013-02-22 11:38 +0100
Re: two JARs Arne Vajhøj <arne@vajhoej.dk> - 2013-02-22 10:26 -0500
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-22 09:24 +0000
Re: two JARs Arne Vajhøj <arne@vajhoej.dk> - 2013-02-22 10:56 -0500
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-22 16:24 +0000
Re: two JARs Lars Enderin <lars.enderin@telia.com> - 2013-02-22 18:54 +0100
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-22 18:38 +0000
Re: two JARs Arne Vajhøj <arne@vajhoej.dk> - 2013-02-22 14:15 -0500
Re: two JARs Lew <lewbloch@gmail.com> - 2013-02-22 11:15 -0800
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-22 19:47 +0000
Re: two JARs Arne Vajhøj <arne@vajhoej.dk> - 2013-02-22 15:05 -0500
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-23 08:44 +0000
Re: two JARs Lew <lewbloch@gmail.com> - 2013-02-23 11:36 -0800
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-23 20:03 +0000
Re: two JARs Lew <lewbloch@gmail.com> - 2013-02-23 12:32 -0800
Re: two JARs Martin Gregorie <martin@address-in-sig.invalid> - 2013-02-23 18:46 +0000
Re: two JARs Lars Enderin <lars.enderin@telia.com> - 2013-02-23 23:30 +0100
Re: two JARs Arne Vajhøj <arne@vajhoej.dk> - 2013-02-24 13:38 -0500
Re: two JARs lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-02-22 09:05 +0000
csiph-web