Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying byte code directly #32

Closed
cemo opened this issue Apr 22, 2015 · 3 comments
Closed

Modifying byte code directly #32

cemo opened this issue Apr 22, 2015 · 3 comments

Comments

@cemo
Copy link

cemo commented Apr 22, 2015

I would like to edit some byte code instructions without compiling file. Compiling a file requires a lot work to do. Is it possible to directly editing files instead of compiling? For example I would like to comment out some of instructions or change an operation code with some another.

Thanks again for this tool @Konloch.

@Konloch
Copy link
Owner

Konloch commented Apr 22, 2015

Yes, select View Pane>Editable Pane 1 then View Pane>Pane 1>Krakatau Editable

Then open the classfile, do the changes you want, then do File>Compile.

That will 'compile (more like assemble)' the pseudo-bytecode to a proper classfile.

Glad you enjoyed it! If you've got any more questions feel free to reply to this. If you come across an issue/bug/suggestion make another ticket though.

@Konloch Konloch closed this as completed Apr 22, 2015
@cemo
Copy link
Author

cemo commented Apr 22, 2015

I set python executable and java rte library (I mean rt.jar ). Decompiling is working fine. But compiling is not working. At least I can not see any output.

  1. What is the output folder for generated file?
  2. An indicator about compiling would be nice. Opening a new issue?
  3. Setting automatically python and jre runtime would be nice as well. User can overwrite in case a different environment. Opening a new issue?

@Konloch
Copy link
Owner

Konloch commented Apr 24, 2015

  1. There is no output folder, if it compiles successfully it'll simply show a menu saying it's compiled successfully. Upon every press of 'Refresh' it should now load the latest code to all the panes instead of the one that's editable.
  2. There is a menu that pops up saying you've compiled successfully or not, are you sure editable is enabled?
  3. For me to do that I'd need all of the default install directories for python, pypy and the JRE/JDK, I suppose I could try automatic detection, but that'd be for 3.0 or 2.9.9.

Do you have Skype so we could screenshare and try to solve this issue 1:1? Cause there should be a menu that pops up alerting you on the compilation status.

Also, if you have Skype I could pass you beta 2.9.4 for some user input before I push it live! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants