简体   繁体   中英

How to edit java .class in eclipse?

I am very new to eclipse and I'm using it for java development. I have no idea how I can be able to edit a class file. Would I need a plugin to edit it? Also I've saw on other questions about how to edit a class file and they said to decompile it then save it as a jar and more. I have no idea how to decompile it so I'm lost. So if anyone could help I'll appreciate it.

Lengthy way use a Java Decompiler to view the Source code of the class file, change it and then recompile, http://jd.benow.ca/

A little complicated but an interesting way is Java Bytecode Editor I personally prefer this solution for small changes. http://cs.ioc.ee/~ando/jbe/ .

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