Java - Bytecode (classfile)

1 - About

When you compile a program written in the Java programming language, the compiler converts the human-readable source file into platform-independent code in Classfiles (.class) that a Java Virtual Machine can understand. This platform-independent code is called Bytecode.

Classfiles are binary files containing machine code (bytecode).

In order to run the classfile, the JVM has to know the directory where classfiles are stored. This parameter is called the classpath.

3 - Library

  • Byte Code Engineering Library (Apache Commons BCEL™) BCEL is already being used successfully in several projects such as:
    • optimizers,
    • obsfuscators,
    • code generators
    • and analysis tools.
lang/java/bytecode.txt · Last modified: 2017/09/06 09:15 by gerardnico