Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > two JARs

Thread Tools

two JARs

Arne Vajhøj
Posts: n/a
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).


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add *.jars to *.jars possible/recommendend? Eclipse setup for this? Ulf Meinhardt Java 2 02-03-2010 04:11 PM
Same package between two jars Java 1 04-13-2007 06:25 PM
Loading image from jars from other jars etc JavaEnquirer Java 2 02-22-2006 03:42 PM
JARs containing JARs Java 5 05-19-2005 04:55 PM
exec jars w/dependent jars Ike Java 6 09-24-2004 06:03 PM