Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    problem with running jar from terminal

    I try to run

    jar -xt jarfile.jar
    and I get the message:

    jar: operation mode already specified

    and of course the file itself is not extracted.
    What is wrong?

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    jar options are pretty much the same as tar options.

    You can specify "x" (extract) or you can specify "t" (table of contents), but you can't specify both.

    Try this:
    jar xvf jarfile.jar

  3. #3
    If you are just wanting to execute (run) the jar file
    java -jar jarfile.jar

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts