Java Bytecode Tutorial

Introduction

The Java Virtual Machine (JVM) is a popular virtual architecture designed to run crossplatform applications. It was originally designed to support the Java programming language and its design closely reflects that. However, you can also write classes directly in bytecode, and this tutorial will show you how, using the Krakatau Assembler. Note that for simplicity, we will use the term bytecode to refer to the entire JVM classfile format, even though technically, only the code inside the methods should really be called bytecode.