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

0

3 Answers

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

2

I am not sure it has been mentioned before or not but i used this 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.

also it's defunct, you can also use builtin IntelliJ decompiler

7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest