modifying a class file inside jar

sakthi.abdullah's Avatar, Join Date: Mar 2007
Go4Expert Member
I want to modify a .class file inside a jar file and put it back ..
How to do this?
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
A class file contains bytecode, you'll to decompile it to the source and the modify and recompile!
0
sakthi.abdullah's Avatar, Join Date: Mar 2007
Go4Expert Member
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