Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: two JARs Date: Sat, 23 Feb 2013 18:46:24 +0000 (UTC) Organization: UK Free Software Network Lines: 37 Message-ID: References: <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> <5e625e1e-0f7b-428b-abc9-bc9c35790e30@googlegroups.com> NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1361645184 15716 84.45.235.129 (23 Feb 2013 18:46:24 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sat, 23 Feb 2013 18:46:24 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:22469 On Thu, 21 Feb 2013 18:25:37 -0800, Lew wrote: > 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? > In Linux (and most unices, so also BSD - but I don't know what OS X does) you can use the 'unzip' command line utility as well as 'jar' to test the jar file, list its contents or extract files from it. Alternatively, in most Linuxes, clicking on the .jar file in the File Manager window will start an Archive Manager so you can review, extract and/or view the contents of files in the archive. In Fedora that is Xarchiver and the file associations default to using it open jar files. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |