Results 1 to 6 of 6
  1. #1
    kishan's Avatar
    kishan is offline Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    0

    Default How to see view the jar class

    hi all......

    I am new to java programming. I want to extract a jar file.
    Please tell me the steps how to extract a jar file class ?
    where will be the extracted class file stored in our system after extracting?
    Is there any effect to the current running project by viewing the code?

  2. #2
    Join Date
    Apr 2009
    Posts
    9
    Rep Power
    0

    Default

    Well a Jar file is really just a zip file with another extension. To view the contents of the Jar file, just copy the Jar file, rename the copied file to .zip instead of .jar and extract the contents using Winzip (or equivalent).

  3. #3
    kishan's Avatar
    kishan is offline Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    0

    Default

    thank u....
    but i followed steps by browsing net.
    1) cd C:\Program Files\Java\jdk1.6.0_05\bin
    2)jar xf TicTacToe.jar TicTacToe.class images/cross.gif (for example)
    will extract all of the folders and files comrpessed inside of the TicTacToe.jar file, and place them into the current folder.


    in the above "current folder" means which folder.

  4. #4
    kishan's Avatar
    kishan is offline Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    0

    Default

    I do as u told but it shows compiled code only.

  5. #5
    Join Date
    Apr 2009
    Posts
    9
    Rep Power
    0

    Default

    Oh so you want to see the source code? You need a Java De-compiler for that. Just do a search for java decompiler on google and you should a lot of links to Java decompilers. Install any one and you should be able to decompile the Java class files to get the source code!

  6. #6
    Join Date
    Apr 2009
    Posts
    9
    Rep Power
    0

    Default

    Quote Originally Posted by kishan View Post
    thank u....
    but i followed steps by browsing net.
    1) cd C:\Program Files\Java\jdk1.6.0_05\bin
    2)jar xf TicTacToe.jar TicTacToe.class images/cross.gif (for example)
    will extract all of the folders and files comrpessed inside of the TicTacToe.jar file, and place them into the current folder.


    in the above "current folder" means which folder.
    This will do the same thing - as when you unzip. Its just a harder way to do it :). To get the source you will need a decompiler. Look at my post above!!!!

Similar Threads

  1. cant view table
    By bheezee in forum JDBC
    Replies: 0
    Last Post: 12-14-2008, 02:46 PM
  2. A view to help
    By hervey in forum Reviews / Advertising
    Replies: 1
    Last Post: 10-29-2008, 08:37 AM
  3. Updating a view using actions in a seperate view
    By xcallmejudasx in forum Eclipse
    Replies: 0
    Last Post: 10-24-2008, 10:24 PM

Posting Permissions

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