Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   modifying a class file inside jar (http://www.go4expert.com/forums/modifying-class-file-inside-jar-t6024/)

sakthi.abdullah 25Aug2007 04:51

modifying a class file inside jar
 
I want to modify a .class file inside a jar file and put it back ..
How to do this?

pradeep 25Aug2007 12:53

Re: modifying a class file inside jar
 
A class file contains bytecode, you'll to decompile it to the source and the modify and recompile!

sakthi.abdullah 28Aug2007 12:07

Re: modifying a class file inside jar
 
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


All times are GMT +5.5. The time now is 13:03.