---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 27 Edition"
java_version: 27
chapter: "Chapter 5. Loading, Linking, and Initializing"
section: "5.3.1"
heading: "5.3.1. Loading Using the Bootstrap Class Loader"
parent: "5.3. Creation and Loading"
source: https://docs.oracle.com/javase/specs/jvms/se27/html/jvms-5.html#jvms-5.3.1
id: "5.3.1"
url: https://jvm.obfuscated.software/jvms/se27/5.3.1.html
raw: https://jvm.obfuscated.software/jvms/se27/5.3.1.md
---

# 5.3.1. Loading Using the Bootstrap Class Loader

The process of loading and creating the nonarray class or interface C denoted by `N` using the bootstrap class loader is as follows.

First, the Java Virtual Machine determines whether the bootstrap class loader has already been recorded as an initiating loader of a class or interface denoted by `N`. If so, this class or interface is C, and no class loading or creation is necessary.

Otherwise, the Java Virtual Machine passes the argument `N` to an invocation of a method on the bootstrap class loader. To load C, the bootstrap class loader locates a purported representation of C in a platform-dependent manner, then asks the Java Virtual Machine to derive a class or interface C denoted by `N` from the purported representation using the bootstrap class loader, and then to create C, via the algorithm of [§5.3.5](5.3.5.md).

Typically, a class or interface will be represented using a file in a hierarchical file system, and the name of the class or interface will be encoded in the pathname of the file to aid in locating it.

If no purported representation of C is found, the bootstrap class loader throws a `ClassNotFoundException`. The process of loading and creating C then fails with a `NoClassDefFoundError` whose cause is the `ClassNotFoundException`.

If a purported representation of C is found, but deriving C from the purported representation fails, then the process of loading and creating C fails for the same reason.

Otherwise, the process of loading and creating C succeeds.
