java bytecode editor? [closed]

让人想犯罪 __ 提交于 2019-11-26 13:51:32

问题


What's a good free bytecode editor? I want an editor, something with a GUI...

I tried jbe-0.1b with no luck (can't save the bytecode changes).


回答1:


Nothing decent with a UI, but you can use the Eclipse Bytecode Outline plugin to turn any Java class into ASM code, edit it, and produce the changed class. It's probably the most painless way at the moment.

http://asm.ow2.org/eclipse/index.html




回答2:


I understand jasmin and jasper are the usual pair used to translate between bytecode and an assemly language representation.

IIRC, Apache BCEL comes with a tool to disassemble class files to code which creates the class file with BCEL.

I've used vi. :)




回答3:


Just to be sure. Have you tried to decompile the class files? I don't know what are you trying to do exactly, but you could first decompile the classes, edit the sources and recompile again.

JAD is a very good decompiler which can handle pretty ugly bytecode and produce readable sources from it.




回答4:


To create java bytecode you could use ASM which offers also eclipse plugins.

ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form.



来源:https://stackoverflow.com/questions/2395574/java-bytecode-editor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!