Can tar extract jar files Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionHow to transfer a rootfs folder?Install Java 8 on ARM Nas (Debian Wheezy)Where to view error log for already finished tar archive command?How to create sha1 checksums of files inside a tar archive on busybox without using much disk spaceHow to tar a directory to a different directory?Compressing Directory tree into multiple tar archives into a single xzrsync: Why doesn't --archive imply --recursive when --files-from=FILE is used?How does editing entries in cron file work?Gzipped archives - Create using tar -czf and extract using only -xf?Tar Splitting Into Standalone Volumes

List *all* the tuples!

Why was the term "discrete" used in discrete logarithm?

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

I am not a queen, who am I?

Stars Make Stars

Why constant symbols in a language?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

ListPlot join points by nearest neighbor rather than order

Gastric acid as a weapon

Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?

Disable hyphenation for an entire paragraph

If a contract sometimes uses the wrong name, is it still valid?

What are 'alternative tunings' of a guitar and why would you use them? Doesn't it make it more difficult to play?

Sorting numerically

How discoverable are IPv6 addresses and AAAA names by potential attackers?

Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?

How to recreate this effect in Photoshop?

Why does Python start at index -1 when indexing a list from the end?

What is the musical term for a note that continously plays through a melody?

Can Pao de Queijo, and similar foods, be kosher for Passover?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

How can I make names more distinctive without making them longer?

How can I fade player when goes inside or outside of the area?

Are my PIs rude or am I just being too sensitive?



Can tar extract jar files



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHow to transfer a rootfs folder?Install Java 8 on ARM Nas (Debian Wheezy)Where to view error log for already finished tar archive command?How to create sha1 checksums of files inside a tar archive on busybox without using much disk spaceHow to tar a directory to a different directory?Compressing Directory tree into multiple tar archives into a single xzrsync: Why doesn't --archive imply --recursive when --files-from=FILE is used?How does editing entries in cron file work?Gzipped archives - Create using tar -czf and extract using only -xf?Tar Splitting Into Standalone Volumes



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide



tar xf ExecutableOne.jar


but why do I get



$ tar xf ExecutableOne.jar 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


Thanks.










share|improve this question






















  • Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

    – Michael Homer
    Apr 11 at 20:35






  • 4





    This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

    – dhag
    Apr 11 at 20:37






  • 3





    They are just zip files, though, so you can extract them with unzip too.

    – Michael Homer
    Apr 11 at 20:58











  • @MichaelHomer Can tar extract zip files?

    – Tim
    Apr 11 at 21:03











  • I wouldn’t be surprised if there were an implementation that could, but not usually.

    – Michael Homer
    Apr 11 at 21:13

















1















From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide



tar xf ExecutableOne.jar


but why do I get



$ tar xf ExecutableOne.jar 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


Thanks.










share|improve this question






















  • Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

    – Michael Homer
    Apr 11 at 20:35






  • 4





    This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

    – dhag
    Apr 11 at 20:37






  • 3





    They are just zip files, though, so you can extract them with unzip too.

    – Michael Homer
    Apr 11 at 20:58











  • @MichaelHomer Can tar extract zip files?

    – Tim
    Apr 11 at 21:03











  • I wouldn’t be surprised if there were an implementation that could, but not usually.

    – Michael Homer
    Apr 11 at 21:13













1












1








1








From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide



tar xf ExecutableOne.jar


but why do I get



$ tar xf ExecutableOne.jar 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


Thanks.










share|improve this question














From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide



tar xf ExecutableOne.jar


but why do I get



$ tar xf ExecutableOne.jar 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


Thanks.







tar java archive






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 11 at 20:30









TimTim

28.7k79270494




28.7k79270494












  • Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

    – Michael Homer
    Apr 11 at 20:35






  • 4





    This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

    – dhag
    Apr 11 at 20:37






  • 3





    They are just zip files, though, so you can extract them with unzip too.

    – Michael Homer
    Apr 11 at 20:58











  • @MichaelHomer Can tar extract zip files?

    – Tim
    Apr 11 at 21:03











  • I wouldn’t be surprised if there were an implementation that could, but not usually.

    – Michael Homer
    Apr 11 at 21:13

















  • Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

    – Michael Homer
    Apr 11 at 20:35






  • 4





    This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

    – dhag
    Apr 11 at 20:37






  • 3





    They are just zip files, though, so you can extract them with unzip too.

    – Michael Homer
    Apr 11 at 20:58











  • @MichaelHomer Can tar extract zip files?

    – Tim
    Apr 11 at 21:03











  • I wouldn’t be surprised if there were an implementation that could, but not usually.

    – Michael Homer
    Apr 11 at 21:13
















Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

– Michael Homer
Apr 11 at 20:35





Because jar files are not tar archives, and it's utterly bewildering to me that that article suggests they are.

– Michael Homer
Apr 11 at 20:35




4




4





This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

– dhag
Apr 11 at 20:37





This is probably a typo in the article, which really meant to say jar xf rather than tar xf.

– dhag
Apr 11 at 20:37




3




3





They are just zip files, though, so you can extract them with unzip too.

– Michael Homer
Apr 11 at 20:58





They are just zip files, though, so you can extract them with unzip too.

– Michael Homer
Apr 11 at 20:58













@MichaelHomer Can tar extract zip files?

– Tim
Apr 11 at 21:03





@MichaelHomer Can tar extract zip files?

– Tim
Apr 11 at 21:03













I wouldn’t be surprised if there were an implementation that could, but not usually.

– Michael Homer
Apr 11 at 21:13





I wouldn’t be surprised if there were an implementation that could, but not usually.

– Michael Homer
Apr 11 at 21:13










2 Answers
2






active

oldest

votes


















4














A jar file is a Java ARchive, not a tarball that can be extracted. You can install jar or java and extract the files (or use 7-Zip), but you can't extract them with tar.






share|improve this answer








New contributor




Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    5














    bsdtar (which is the regular tar(1) on FreeBSD, and easily installable on Linux) can extract .jars transparently, and a lot of other archive formats.



    .jars are basically .zip files.






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511990%2fcan-tar-extract-jar-files%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      A jar file is a Java ARchive, not a tarball that can be extracted. You can install jar or java and extract the files (or use 7-Zip), but you can't extract them with tar.






      share|improve this answer








      New contributor




      Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























        4














        A jar file is a Java ARchive, not a tarball that can be extracted. You can install jar or java and extract the files (or use 7-Zip), but you can't extract them with tar.






        share|improve this answer








        New contributor




        Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






















          4












          4








          4







          A jar file is a Java ARchive, not a tarball that can be extracted. You can install jar or java and extract the files (or use 7-Zip), but you can't extract them with tar.






          share|improve this answer








          New contributor




          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          A jar file is a Java ARchive, not a tarball that can be extracted. You can install jar or java and extract the files (or use 7-Zip), but you can't extract them with tar.







          share|improve this answer








          New contributor




          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Apr 11 at 20:35









          Bob DoleBob Dole

          761




          761




          New contributor




          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Bob Dole is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























              5














              bsdtar (which is the regular tar(1) on FreeBSD, and easily installable on Linux) can extract .jars transparently, and a lot of other archive formats.



              .jars are basically .zip files.






              share|improve this answer



























                5














                bsdtar (which is the regular tar(1) on FreeBSD, and easily installable on Linux) can extract .jars transparently, and a lot of other archive formats.



                .jars are basically .zip files.






                share|improve this answer

























                  5












                  5








                  5







                  bsdtar (which is the regular tar(1) on FreeBSD, and easily installable on Linux) can extract .jars transparently, and a lot of other archive formats.



                  .jars are basically .zip files.






                  share|improve this answer













                  bsdtar (which is the regular tar(1) on FreeBSD, and easily installable on Linux) can extract .jars transparently, and a lot of other archive formats.



                  .jars are basically .zip files.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 11 at 21:22









                  pizdelectpizdelect

                  764210




                  764210



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511990%2fcan-tar-extract-jar-files%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                      Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                      NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided