×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    26

    Any Possibility To Extract Contents of a JAR File

    Hello

    Is there Any Possibility To Extract Contents of a JAR File . i.e class files with proper names.

  2. #2
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: Any Possibility To Extract Contents of a JAR File

    Hi AmeyDeshpande,
    If your jar file is an obfuscated one,then i suppose you cant extract class files with proper names.But if not obfuscated you can extract it with the correct file names.

    Thanks
    Soku

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    26

    Re: Any Possibility To Extract Contents of a JAR File

    Thanks


    I knew IF the Jar file is obfuscated then we cannot get
    but there may be some thing that we can do it ..
    Or we can make that obfuscated jar in to Simple JAR file ....
    OR there may be some tool from which we can Extracts contents of obfuscated jar ...

  4. #4
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Any Possibility To Extract Contents of a JAR File

    Hi amey,


    Obfuscation is one of the security policies.
    The only thing u can do is to unzip the jar file to a new folder. There u will get the obfuscated class files & resource files.
    U can use a decompiler to read the obfuscated class files. But the methods, variables & class files will be in there obfuscated name itself.You can't do anything for this.

    Any way a small question Why do u want to read an obfuscated class file


    Wang

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    12

    Re: Any Possibility To Extract Contents of a JAR File

    Hi Amey,
    I am not exactly clear what you want to do.
    With JDK1.5 there are a collection of classes that
    handle jar files and enable you to read and write them.
    It may be possible to find the source for these routines
    and port them to J2ME.
    If I remember correctly, jar is like tar but the entry is
    compressed. It should not be too difficult to write
    a routine to extract the headers.
    Regards
    Don

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Any Possibility To Extract Contents of a JAR File

    We had some similar discussion earlier, may be these links are of some interest to you!

    http://discussion.forum.nokia.com/fo...ght=decompiler
    http://discussion.forum.nokia.com/fo...ght=decompiler

    Regards
    Gopal

Similar Threads

  1. can we get the source file from jar file..
    By bb_sathya in forum Mobile Java General
    Replies: 6
    Last Post: 2005-12-28, 13:14
  2. Invalid jar file
    By irina_white in forum Mobile Java General
    Replies: 6
    Last Post: 2005-05-28, 15:40
  3. Error when installing jar file using servlet.
    By jpori in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-06, 08:48
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22
  5. Extract contents of AIF file
    By heuven in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-12-01, 16:48

Posting Permissions

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