jar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarvani
    New Member
    • Aug 2006
    • 4

    #1

    jar

    given a jar file, how can i unjar it.
  • xtron
    New Member
    • Aug 2006
    • 4

    #2
    Jar it's a zip file so you can view it on any zip archive viewer. Of course it could be compressed jar file than you probably can't view it.

    Comment

    • Christy
      New Member
      • Aug 2006
      • 7

      #3
      a dot jar is just like a .rar so you could decompress it using win rar

      Comment

      • heat84
        New Member
        • Nov 2007
        • 118

        #4
        You can use the command jar -xvp jarfilename whereyouwanttoe xtractto

        However, if you have winrar, it will also do the trick for you without having to worry about commands

        Comment

        • CodeTilYaDrop
          New Member
          • Aug 2007
          • 66

          #5
          I usually just open it up as a file in eclipse. Then, you can copy the contents and use it in another program or just view it. I think you can open it as a source file somehow, but I have not figured that out yet.

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by CodeTilYaDrop
            I usually just open it up as a file in eclipse. Then, you can copy the contents and use it in another program or just view it. I think you can open it as a source file somehow, but I have not figured that out yet.
            Generally jar files contain .class files. Unless the source files have been included in the .jar then you cannot normally obtain the source file from the .class without using some external programs

            Comment

            • heat84
              New Member
              • Nov 2007
              • 118

              #7
              Just wondering why he wants to unjar , does he wants to get the source code or what?

              Comment

              Working...