Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > help, need to re-install java tools

help, need to re-install java tools
Thread Tools
adamk
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
Feb 11, 2005, 12:08 PM
 
i need to package some programs in a .jar file, but everytime i use the jar tool, jibberish is printed to the screen. what is the best way to re-install the program.

Code:
102 10:05:59 [cactus]:~ adam% jar -c test.jar test.jar : no such file or directory K-*???R0?3??r.JM,IM?u?2M???*h8?*8??????(x?%?i?r?rP??\FFQK2 META-INF/??QK2??\FF=META-INF/MANIFEST.MFPK}?103 10:08:05 [cactus]:~ adam%
the -c flag should, and has, create a new file.
"do unto others as you would have them do unto you" begins with yrself.

"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 11, 2005, 01:49 PM
 
That command gives the same output on the practically fresh install of the devtools on my computer here at work. The documentation for jar says the -c flag will output the jar data to stdout, which is what it looks like it's doing.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
adamk  (op)
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
Feb 11, 2005, 04:00 PM
 
Originally posted by Chuckit:
That command gives the same output on the practically fresh install of the devtools on my computer here at work. The documentation for jar says the -c flag will output the jar data to stdout, which is what it looks like it's doing.
huh,
Code:
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ... Options: -c create new archive
does the "-" before the c matter? anyway, i made it work by using
Code:
jar cvfm my.jar manifest.mf *.class
i re-made my manifest file, so maybe there was something wrong in there as well.
"do unto others as you would have them do unto you" begins with yrself.

"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 11, 2005, 06:22 PM
 
Originally posted by adamk:
huh,
Code:
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ... Options: -c create new archive
The manpage has a longer description:
Code:
c Creates a new or empty archive on the standard output.
( Last edited by Chuckit; Feb 11, 2005 at 07:41 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Feb 11, 2005, 06:55 PM
 
c- creates
f- specify filename
x- extracts

so to make a jar:

jar cf foo.jar file-list

to extract it:

jar xf foo.jar
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 04:10 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,