How to open a jar file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to open a jar file

Hybrid View

  1. #1
    Lo Guest

    How to open a jar file


    Hi,

    I'm looking for a tool to open up files with .jar extension so that I can
    get the original source code for all the classes. Can that be possibly done
    (coz that's the only file left for me to read and modify the original source
    code) ? Thanks in advance.

    Lo

  2. #2
    Paul Clapham Guest

    Re: How to open a jar file

    Yes, any tool that can read ZIP files can also read JAR files, because they
    are in the same format.

    Lo <harry@startechmm.com> wrote in message news:39eacc7c$1@news.devx.com...
    >
    > Hi,
    >
    > I'm looking for a tool to open up files with .jar extension so that I can
    > get the original source code for all the classes. Can that be possibly

    done
    > (coz that's the only file left for me to read and modify the original

    source
    > code) ? Thanks in advance.
    >
    > Lo




  3. #3
    Raja Guest

    Re: How to open a jar file


    you can open .jar archive using SUN JDK's jar command. But you can read only
    images or something like that stuff otherwise it contains .class file which
    is byte code. Have fun


  4. #4
    jayaramreddy Guest

    Re: How to open a jar file


    "Lo" <harry@startechmm.com> wrote:
    >
    >Hi,
    >
    >I'm looking for a tool to open up files with .jar extension so that I can
    >get the original source code for all the classes. Can that be possibly done
    >(coz that's the only file left for me to read and modify the original source
    >code) ? Thanks in advance.
    >
    >Lo


    Hi!
    If u are working on windows o/s.Then press shift key and then right click
    mouse button,select open with and there chose win zip
    and press ok.This shows you all the files in the jar.






  5. #5
    Mikael Petterson Guest

    Re: How to open a jar file


    "Lo" <harry@startechmm.com> wrote:
    >
    >Hi,
    >
    >I'm looking for a tool to open up files with .jar extension so that I can
    >get the original source code for all the classes. Can that be possibly done
    >(coz that's the only file left for me to read and modify the original source
    >code) ? Thanks in advance.
    >
    >Lo


    Hi LO,

    if you are working with the command line ( MS-dos window or Linux) use:

    jar tvf <filename>.jar to find the content of the file without extracting..

    If you for some reason want to extract the class files in the jar then
    you can use the :

    jar xvf <filename>.jar

    This is easy to use. Note that the paths are created so you don not have
    to
    worry about that.

    //Mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center