unzip jar

Discussion in 'Mac Programming' started by chrislee8, Aug 21, 2006.

  1. macrumors regular

    Joined:
    Jul 26, 2004
    Location:
    NY, NY
    #1
    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
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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
     
  3. thread starter macrumors regular

    Joined:
    Jul 26, 2004
    Location:
    NY, NY
    #3
    let me try again, i think i leave enough time for it.

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

    gekko513

    Joined:
    Oct 16, 2003
    #4
    It's supposed to be "jar xf <filename>", I think.
     
  5. thread starter macrumors regular

    Joined:
    Jul 26, 2004
    Location:
    NY, NY
    #5
    thanks everyone for quick tips.

    jar xf <filename> works for me.
     
  6. macrumors 6502

    Joined:
    Oct 2, 2003
    Location:
    Sydney, Australia
    #6
    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! :)
     
  7. macrumors newbie

    Le Je-Pe

    Joined:
    Jan 10, 2006
    Location:
    Montreal, Qc.
    #7
    Verbose anyone ?

    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 !
     

Share This Page