Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22436

Re: two JARs

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 <i7bdi89acbi9jd9ue4v3u7i8g7d6a5lkpr@4ax.com>
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> <i7bdi89acbi9jd9ue4v3u7i8g7d6a5lkpr@4ax.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <5e625e1e-0f7b-428b-abc9-bc9c35790e30@googlegroups.com> (permalink)
Subject Re: two JARs
From Lew <lewbloch@gmail.com>
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

Show key headers only | View raw


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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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