Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lars Enderin Newsgroups: comp.lang.java.programmer Subject: Re: two JARs Date: Sat, 23 Feb 2013 23:30:16 +0100 Organization: albasani.net Lines: 39 Message-ID: <512942F8.9000202@telia.com> References: <69022de5-1be1-42a1-8c2b-2c5c8f96d532@googlegroups.com> <5e625e1e-0f7b-428b-abc9-bc9c35790e30@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net XVYcIhARxHIYK9uCoAtxnZVf5J1k6rOcXd4ZqHUDCFay0lJqDMsXc9gUAk6cVpsPmnrzkeUTMjzvr7NCLubwxaJB2Wym9TX6BWH70D4oDb+yI/wvH7hoPCb8hXo6mAam NNTP-Posting-Date: Sat, 23 Feb 2013 22:31:28 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="2ySgFMIz5jnk/aL5jUUEv8kFt2s+kqiOSVvdBx41UmCm9MVREisNYPz9WU7RNHS1zYxo+Umk7v1jZRwvKnuhOxGx+aOuyMqUcjXJvRz7sC7NJj7B/BEVimtXFp0Tfu6x"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: Cancel-Lock: sha1:AA3Uot8mztQU6cStsosdT1cFGJk= Xref: csiph.com comp.lang.java.programmer:22475 2013-02-23 19:46, Martin Gregorie skrev: > 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. > Emacs is also capable of handling file archives, and is freely available for Linux, Unix, Windows, etc. -- Lars Enderin