Results 1 to 3 of 3
  1. #1
    ralex76 is offline Member
    Join Date
    Oct 2009
    Rep Power

    Default unzip .jar/decompile .class/edit .jad/re-compiled . class ????

    Hi All,

    I'm new in Java, I know some basic concepts. I think that my matter, for a JAVA guru, is very easy to sort out.

    I have got a .jar file and my goal is to decompile .class in order to edit/substitute a string in the .java file.

    These are the steps fallowed :

    1) Unzipped .jar --> I have got some files and a file .class
    2) Decompiled .class --> By using DJ java decompiler --> .jad or .java
    3) I edited and substituted the string in the .java file
    4) I tried to compile it, but I have got an error : "line .. not a statement"

    This line corresponds to a "try and catch" expection...

    I also tried to use netbeans, importing all unzipped files , but I have not success.

    Could someone,please, help me telling step by step to follow?

    Please be patient :)


  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    Post the lines around the line that is reported as not a statement.

  3. #3
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    And, try decompiling the class and then, immediately, recompile it. If that works, you're problem is the change you made.

    Just as a quick test to see if anything is even going to help. ;-)

Similar Threads

  1. Replies: 7
    Last Post: 05-06-2009, 12:42 PM
  2. Replies: 8
    Last Post: 03-21-2009, 09:34 AM
  3. Calling a method on original class from created class
    By kpedersen in forum Advanced Java
    Replies: 4
    Last Post: 08-20-2008, 12:25 AM
  4. Replies: 0
    Last Post: 05-13-2008, 06:16 AM
  5. Replies: 5
    Last Post: 08-11-2007, 03:14 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