How to change class files in jar

Status
Not open for further replies.
I have a jar file(with all classes), i can decompile it to java file and change according to my requirement , but how can i compile it and include it in my jar.
Please tell me a way to do so.
 

Harinder

Right off the assembly line
i have a java mobile app as a .jar file i decompiled it, now i wnt to chnge its code and recompile it,,,can u help me out plz.....!!!!!!!!
 

rajiv.bandi

Right off the assembly line
@Unbounded Bond
Compile it normally as you would do with other java classes. You will get a .class file. Open the jar file with Winzip or 7Zip and replace the previous class file with the new one.

@Harinder
You can also follow the same process as above but normally J2ME apps (if thats what you mean by java mobile apps) are signed using a security certificate. So if you change the class files in the signed jar then it will not be valid and may not run on your mobile.

Let me know if you have any more doubts.
 
Status
Not open for further replies.
Top Bottom