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


Groups > comp.lang.java.programmer > #22428 > unrolled thread

two JARs

Started bybob smith <bob@coolfone.comze.com>
First post2013-02-21 14:30 -0800
Last post2013-02-22 09:05 +0000
Articles 9 on this page of 29 — 11 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

Page 2 of 2 — ← Prev page 1 [2]


#22459

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-02-22 15:05 -0500
Message-ID<5127cf8a$0$295$14726298@news.sunsite.dk>
In reply to#22458
On 2/22/2013 2:47 PM, lipska the kat wrote:
> On 22/02/13 19:15, Lew wrote:
>> lipska the kat wrote:
>>> Lew wrote:
> [snip]
>
>>
>> This is an engineering forum. Information here isn't about mood, it's
>> about
>> solutions. I RTFM all the time. Don't you?
>
> Of course, anyone that engineers software does but here's the thing, I
> don't need to be *told* to RTFM.

If you ask a question that is in TFM, then ...

>                               If you know anything about education,
> if you've had any experience of passing knowledge to other people you
> will know that you can learn from the rawest interested beginner. I've
> done my time as a technical instructor and I can tell you from
> experience that some of the most profound insights into software design
> and development can come from beginners, they may be incomplete, they
> may be naive but they can really make you *think*, about your ideas,
> about your [bad] habits, about your very core beliefs and understanding.

Interesting thought.

But not very applicable to the question about what is in two specific
jar files.

> How many potential sources of inspiration have not posted to c.l.j.p
> because all they can see is some herbert telling them to RTFM.

If they are afraid to post because they fear to get a reply with
a link to the specific documentation that solves their problem and
the RTFM acronym, then they are somewhat oversensitive.

> It doesn't matter if someone asks a naive question, I will continue to
> answer questions where I can because every time I answer one it makes me
> think, and learn and look at things from a different perspective... I
> like thinking, not least because "I think therefore I am"

Now you are not known for answering questions but more for whining
about the tone in other peoples posts.

Arne

[toc] | [prev] | [next] | [standalone]


#22463

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-02-23 08:44 +0000
Message-ID<UsudnU5lBMj5HLXMnZ2dnUVZ8oydnZ2d@bt.com>
In reply to#22459
On 22/02/13 20:05, Arne Vajhøj wrote:
> On 2/22/2013 2:47 PM, lipska the kat wrote:
>> On 22/02/13 19:15, Lew wrote:
>>> lipska the kat wrote:

[snip more pointless noise]

> Now you are not known for answering questions but more for whining
> about the tone in other peoples posts.

Well if you mean I don't feel the need to add my 2 cents worth to EVERY 
post in c.l.j.p then I suppose you are right. I only contribute when I 
feel I have something to add.

As for the whining, well when others stop whining about people who don't 
ask questions in the way they think they should be asked then I'll stop 
whining about the whiners.

capiche ?

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#22470

FromLew <lewbloch@gmail.com>
Date2013-02-23 11:36 -0800
Message-ID<4a064567-612a-4620-8b0b-2d24c3ea6cd5@googlegroups.com>
In reply to#22463
lipska the kat wrote:
> capiche ?

It's spelled «capisce».

Second-person singular verb form.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#22471

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-02-23 20:03 +0000
Message-ID<OrWdnRyOtqnnvbTMnZ2dnUVZ8gOdnZ2d@bt.com>
In reply to#22470
On 23/02/13 19:36, Lew wrote:
> lipska the kat wrote:
>> capiche ?
>
> It's spelled «capisce».
>
> Second-person singular verb form.

http://en.wiktionary.org/wiki/capiche

First person RTFM

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#22474

FromLew <lewbloch@gmail.com>
Date2013-02-23 12:32 -0800
Message-ID<d6136840-92ad-47ac-baa5-81cddcf710f2@googlegroups.com>
In reply to#22471
On Saturday, February 23, 2013 12:03:04 PM UTC-8, lipska the kat wrote:
> On 23/02/13 19:36, Lew wrote:
> 
> > lipska the kat wrote:
> 
> >> capiche ?
> 
> >
> 
> > It's spelled �capisce�.
> 
> >
> 
> > Second-person singular verb form.
> 
> 
> 
> http://en.wiktionary.org/wiki/capiche
> 
> 
> 
> First person RTFM

Thank you.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#22469

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2013-02-23 18:46 +0000
Message-ID<kgb2q0$fb4$1@localhost.localdomain>
In reply to#22436
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       |

[toc] | [prev] | [next] | [standalone]


#22475

FromLars Enderin <lars.enderin@telia.com>
Date2013-02-23 23:30 +0100
Message-ID<512942F8.9000202@telia.com>
In reply to#22469
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

[toc] | [prev] | [next] | [standalone]


#22483

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-02-24 13:38 -0500
Message-ID<512a5e3b$0$283$14726298@news.sunsite.dk>
In reply to#22475
On 2/23/2013 5:30 PM, Lars Enderin wrote:
> 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.

But it is very rare on Windows.

It does not matter much anyway as Windows itself has the ability to
read zip files (in all newer Windows versions).

Arne


[toc] | [prev] | [next] | [standalone]


#22438

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-02-22 09:05 +0000
Message-ID<FMednQp8ufV8qbrMnZ2dnUVZ8jednZ2d@bt.com>
In reply to#22428
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 <filename> 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

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.java.programmer


csiph-web