|
|
help, need to re-install java tools
|
|
|
|
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
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'."
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
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'."
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
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 Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|