This is a simple python script that reads Java .class
file and print its contents on stdout or a specified output stream.
The idea of this project comes from the series of videos by Tsoding about
JelloVM.
Warning
The script actually parses only some attributes like Code
or ConstantValue
.
The parsing of the other attributes is still a work in progress.
Important
The reader follows the Java 8 specification. There is no guarantee that it will work correctly with newer versions of Java.
usage: main.py [-h] [-d] file
positional arguments:
file Java compiled .class file
options:
-h, --help show this help message and exit
-d, --dump Save output in a text file with same name of .class file
- Support for other attributes
- Separation in multiple files
- Support for multiple .class files
- Support for .jar files
- Better CLI interface