PDA

View Full Version : unzip jar




chrislee8
Aug 21, 2006, 02:22 PM
i have a jar file, I tried to unzip using jar command

i do:

jar -x myfile.jar, it doesn't do anything, it just sits there,

I am really a newbie using shell command, I learn while i try things out. so bear with me for my simple questions.

thanks



robbieduncan
Aug 21, 2006, 02:48 PM
How big is the jar file? How long did you leave it? A large file will take a reasonably long time to extract.

Note that you should not need the -. jar x <filename> should work

chrislee8
Aug 21, 2006, 03:05 PM
How big is the jar file? How long did you leave it? A large file will take a reasonably long time to extract.

Note that you should not need the -. jar x <filename> should work

let me try again, i think i leave enough time for it.

is there any gui app to do that? just curious.

gekko513
Aug 21, 2006, 05:35 PM
It's supposed to be "jar xf <filename>", I think.

chrislee8
Aug 21, 2006, 05:49 PM
thanks everyone for quick tips.

jar xf <filename> works for me.

cazlar
Aug 21, 2006, 06:29 PM
You can also just rename the file with a .zip extension and let the OS expand it for you when you double-click. It's kind of cheating though! :)

Le Je-Pe
Aug 21, 2006, 07:24 PM
You can also add a "v" in the arguments to enable the verbose mode and actually see what's going on during that "hang time" :)

ie: jar -xvf somejar.jar

Cheers !