Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Class File Editor

What is the most effective way I can decompile & Edit a class file? I really just want to edit one line of code in the file, however JBE (java ByteCode Editor) isn't letting me change a floating point constant.

Decompiling the class and recompiling will not work, as I have tried this, I get many dependency errors, and name errors. How can I go about this effectively?

Thanks

like image 424
Richard J. Ross III Avatar asked Apr 21 '11 19:04

Richard J. Ross III


2 Answers

What I personally like to use and fits exactly your problem:

http://dirty-joe.com/

like image 55
Fx Mzt Avatar answered Oct 17 '22 20:10

Fx Mzt


I am not sure it has been mentioned before or not but i used this http://classeditor.sourceforge.net/screenshot/index.html when i ran into the similar problem.

The tool is pretty decent, can help you look at the class files fields/methods etc. There is an option on the GUI which can be checked to edit the "values" of fields or soemthing which will reflect directly in class file.

like image 22
x.509 Avatar answered Oct 17 '22 22:10

x.509