1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

modifying a class file inside jar

Discussion in 'Java' started by sakthi.abdullah, Aug 25, 2007.

  1. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    I want to modify a .class file inside a jar file and put it back ..
    How to do this?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    A class file contains bytecode, you'll to decompile it to the source and the modify and recompile!
     
  3. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    I decompiled into source code(I mean the java files)

    Now I cannot compile it seperately...

    Actually I tried like this in the cmd prompt.... I added required jar files in the classpath and compiled.. There is a statement like this "ClassNotFoundException x1" which gives an error - invalid declaration
     

Share This Page