Skip to content

Rax-x/java-class-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Java Class Reader

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

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

TODO

  • Support for other attributes
  • Separation in multiple files
  • Support for multiple .class files
  • Support for .jar files
  • Better CLI interface

Resources

About

Java .class file reader

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages