tags:

views:

724

answers:

4

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).

A: 

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.

pajton
because of dependencies missing and complicated stuff I can't recompile the sources. So I just need to bytecode some stupid strings :)
AlfaTeK
If you just need to change the strings, any editor should be fine:-). Seriously, I believe they are stored just as strings there.
pajton
+1  A: 

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. :)

Tom Hawtin - tackline
+1  A: 

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.

stacker
+1  A: 

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

Jevgeni Kabanov