Java - Bytecode (classfile)

Java Conceptuel Diagram


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.


  • 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.

Discover More
Compiler - Binary

binary files in the context of a compiler are executable file created by the compiler targeting a run-time (execution) environment. They are called binary files because they contain binary data that can...
Java Conceptuel Diagram
Java - Class (Loader|Loading) Process

A class loader is a piece of code that load a class. Class loaders may typically be used by security managers to indicate security domains. Classes are loaded into the JVM only on demand, so even...
Java Conceptuel Diagram
Java - Compile (class file)

The compilation create a class source.class file from a java source file ie file. The create class language is called and can be run on any OS with any java executable (ie ) The...
Java Control Panel
Java - Getting Started - Hello World

A little article on the basics of Java. On Windows, the Java Control Panel: Creation of the file as text file. This simple code is composed of: a class HelloWorld a main...
Language - Compilation (Compile Time)

Compile time or compilation is a step of a compiler that transforms a source code into instruction byte understood by the running engine. If the running engine target is: the CPU (ie native), the byte...
Card Puncher Data Processing
Scala - Compiler (scalac)

The scala compiler compiles .scala source files to .class files, like the Java compiler. The scalac command compiles one (or more) Scala source file(s) and generates Java bytecode which can be...

Share this page:
Follow us:
Task Runner