This project was built to help me explore how does the JVM work. It implements a really simple parser and byte code interpreter for Java class files.
All of the code was written live in about 6 hours on my twitch channel, you can find the long form content over on Youtube.
- Java compiler
- Odin compiler
In order to run the VM, you must compile and run the Odin code as module by using the following commands:
odin build . && ./JavaVM.exe
or
odin run .
Currently, the class filename is hardcoded on top of the Odin file, you might change it if the Java class is renamed.
The above command will use the precompiled Main.class
file, if you want to modify the java code, do not forget to invoke
the compiler:
javac Main.java