Find the answer to your Linux question:
Results 1 to 3 of 3
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?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    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
    Location
    California
    Posts
    98
    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
    Just Joined!
    Join Date
    May 2010
    Posts
    30
    If you are just wanting to execute (run) the jar file
    java -jar jarfile.jar

  4. $spacer_open
    $spacer_close

Posting Permissions

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