X-Received: by 10.224.72.199 with SMTP id n7mr602664qaj.5.1361499937563; Thu, 21 Feb 2013 18:25:37 -0800 (PST) X-Received: by 10.49.24.164 with SMTP id v4mr10157qef.6.1361499937542; Thu, 21 Feb 2013 18:25:37 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!dd2no1957318qab.0!news-out.google.com!t2ni671qaj.0!nntp.google.com!dd2no1957314qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Thu, 21 Feb 2013 18:25:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 69.28.149.29 References: <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5e625e1e-0f7b-428b-abc9-bc9c35790e30@googlegroups.com> Subject: Re: two JARs From: Lew Injection-Date: Fri, 22 Feb 2013 02:25:37 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:22436 Roedy Green wrote: > bob smith wrote, quoted or indirectly quoted someone who said : >> 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. Use them both - the "sources" JAR for the source code and the other one for the actual classes. In general, a "seasoned Java programmer" would expect "foo-dah-lily.jar" to be suitable for insertion into the classpath, and "foo-dah-lily-source.jar" (or "...sources.jar") to contain the source files. Hence the word "source[s]" in the JAR name. Logical, huh? > look inside them with WinZip. Presumably sources contains .java files > and the other .class files. WinZip? What if he's not using Windows? Oh, if only there were a cross-platform tool for manipulating, creating, and examing JAR files. We could call it - let's see now, something that lets you know it's for JAR files - hmm - for JAR files ... I know! We can call it "jar"! And Oracle could ship it as a standard part of the JDK! And they would document it at http://docs.oracle.com/javase/7/docs/technotes/guides/jar/index.html and related pages! Then the OP could RTFM! -- Lew