Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 22 Feb 2013 03:05:37 -0600 Date: Fri, 22 Feb 2013 09:05:35 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: two JARs References: <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> In-Reply-To: <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 46 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-7N7TuHsUXmpf8vOmlUOGgmbPdUvzpuFRfMZVx7wKiiTCQqQ796EKr3mu7ygxVi6ZBEFlerNbXZHcvoY!NxWssemelOI882qSeooU1DcuBMg5mS9INppew8dLXROf9ujn/SR/QmSChrz19m4IieW9UcP9rfk= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2775 Xref: csiph.com comp.lang.java.programmer:22438 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 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