Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

try this

Thread view: 
VisionSet - 13 Jan 2006 23:08 GMT
On my machine it goes real screwy - dos box locks up and scrolls tons of
garbage, system usable but to revover dos needs reboot.

archiving the current directory:

jar cM some_archive_name_though_no_switch_to_say_i_include_one.jar .

windows 2000
AMD athlon processor
512MB ram

--
Mike W
VisionSet - 14 Jan 2006 00:24 GMT
> jar cM some_archive_name_though_no_switch_to_say_i_include_one.jar .
>
> windows 2000
> AMD athlon processor
> 512MB ram

sdk 1.5.0_06

--
Mike W
Jean-Francois Briere - 14 Jan 2006 03:13 GMT
If you read the jar tool documentation
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/jar.html
you'll see under the 'c' option that if you don't specify 'f',
it will create the archive in the standard output.
That is why you got all that crap (non printable characters) in your
console.

Regards
Roedy Green - 14 Jan 2006 04:42 GMT
>> windows 2000
>> AMD athlon processor
>> 512MB ram
>
>sdk 1.5.0_06

I tried it on W2K Jdk 1.5.0_06.  
I got an error message about the jar not existing.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Jean-Francois Briere - 14 Jan 2006 07:50 GMT
>> windows 2000
>> AMD athlon processor
>> 512MB ram

>>sdk 1.5.0_06

> I tried it on W2K Jdk 1.5.0_06.
> I got an error message about the jar not existing.

Which is normal because the specified jar is not seen as the archive
name (since there is no 'f' option) but as one file to be inputted into
the archive.
And since this file does not exist, you have the error message.
Roedy Green - 14 Jan 2006 08:18 GMT
On 13 Jan 2006 23:50:54 -0800, "Jean-Francois Briere"
<jfbriere@gmail.com> wrote, quoted or indirectly quoted someone who
said :

>Which is normal because the specified jar is not seen as the archive
>name (since there is no 'f' option) but as one file to be inputted into
>the archive.
>And since this file does not exist, you have the error message.

what do you think the jar designers were up to without making you
specify a jar name? They make it the exception case TO specify it.
Jar creation output to the console is just gibberish.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Thomas Hawtin - 14 Jan 2006 17:27 GMT
> what do you think the jar designers were up to without making you
> specify a jar name? They make it the exception case TO specify it.
> Jar creation output to the console is just gibberish.

jar just follows the conventions of tar (Tape ARchive). tar was designed
to have the result streamed to a tape drive (possibly through a
compression program). From jar's point of view, the output is not to the
console, but to the standard output. It's a very normal way of handling
things under UNIX.

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.