简体   繁体   中英

Decompile a .Class file inside a Original JAR

I have a JAR file and I need to modify just one of my .class file. I decompiled it online and did my modification, actually is just a modification of some Texts inside my .class file My question is now how can I overwrite modified version in the original one?

Can anyone help me?

Thanks Sepide

You need to compile the Java source file back to a class file. The easiest way is probably to decompile the whole project, make the changes and then recompile it (possibly manually replacing only that particular jar).

But be aware that round tripping this way is not 100% bullet proof. Especially if there is obfuscation involved. That said, it can work and I have done so successfully in the past. YMMV.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM