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.
Advertisements. Register and be a member of the community to get rid of them.
@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.