Results 1 to 4 of 4
  1. #1
    seshvasan89 is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Question problem in recompiling into jar

    all...

    I am new to this Forum...

    i have a doubt regarding putting all the classes files back into jar file...

    what i did : I decompiled all the .classes into .java ..... there were many inner classes but when decompiling all inner classes were merged into the main class and i got the proper source...
    now after editing the source if i put the compiled .classes back into jar those inner classes arent getting formed !!! and the application is written such that it requires the inner classes separately.. !!!

    so please help me how to put the files back to same structure...

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: problem in recompiling into jar

    how to put the files back to same structure
    If you have done it right, your decompiled source should compile and generate all the class files needed to execute the program.

    Does the program execute properly from the newly compiled class files? If so, you should be able to put all the class files into a jar file and execute the classes from there.

  3. #3
    seshvasan89 is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Default Re: problem in recompiling into jar

    thanks Norm for that reply

    yes... i have decompiled the classes properly.... the previous structure inside the jar is like say

    mainClass has inner classes main1$Class, main2$Class...

    when i decompile both those inner classes gets merged into the main class. and when i re-compile it back those inner classes are not getting formed back....
    but in the application it requires the inner classes to be separate !!!

    how to do this ???
    which Decompiler you suggest ???

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: problem in recompiling into jar

    the application it requires the inner classes to be separate !!!
    Then you will have to figure out out to do recreate the source to get the desired classes.

Similar Threads

  1. recompiling needed when classpath library changes ?
    By louiseburg in forum New To Java
    Replies: 6
    Last Post: 11-11-2009, 07:14 AM
  2. Use classes without recompiling?
    By palindrome in forum Advanced Java
    Replies: 2
    Last Post: 08-02-2007, 11:26 AM

Posting Permissions

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