CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: how to view the code of a jar file?

  1. #1
    Join Date
    Oct 2016
    Posts
    8

    Question how to view the code of a jar file?

    Hi,

    i am new to java programming. I have jar file which we are running through command prompt.
    How can we see the code written in the jar file.Could anyone please help me

    Thanks,
    Mani

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,858

    Re: how to view the code of a jar file?

    Find the author of the code and ask for a copy.

    You can view the contents of a jar file by using a zipfile utility to open the file.
    Norm

  3. #3
    Join Date
    Oct 2016
    Posts
    8

    Re: how to view the code of a jar file?

    Hi Norm,

    Thanks for your reply.The author have left the team, so it is not possible for me to get the copy of code.

    Could you please explain me in detail how to view the content of jar file using zip file utility, sorry please bear with me

    Mani

  4. #4
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,858

    Re: how to view the code of a jar file?

    One way is to rename the jar file by adding the extension: .zip and then double clicking on the file. If your system is setup to open zip files, the file should open in a zip file utility.
    Norm

  5. #5
    Join Date
    Oct 2016
    Posts
    8

    Re: how to view the code of a jar file?

    Thanks Norm..i have renamed the extension and use the online java decompliers to see the source code from .class file.

  6. #6
    Join Date
    Aug 2016
    Posts
    23

    Re: how to view the code of a jar file?

    If you are using eclipse, you can simply add the jar file into your project. After adding the jar file, you will be able to view the source code.

  7. #7
    Join Date
    Oct 2016
    Posts
    8

    Re: how to view the code of a jar file?

    Thanks Clarie..It's also works fine

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)