---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 12 Edition"
java_version: 12
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/se12/html/jvms-5.html#jvms-5.3.1
id: "5.3.1"
url: https://jvm.obfuscated.software/jvms/se12/5.3.1.html
raw: https://jvm.obfuscated.software/jvms/se12/5.3.1.md
---

# 5.3.1. Loading Using the Bootstrap Class Loader

The following steps are used to load and thereby create the nonarray class or interface C denoted by `N` using the bootstrap class loader.

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 creation is necessary.

Otherwise, the Java Virtual Machine passes the argument `N` to an invocation of a method on the bootstrap class loader to search for a purported representation of C in a platform-dependent manner. 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.

Note that there is no guarantee that a purported representation found is valid or is a representation of C. This phase of loading must detect the following error:

- If no purported representation of C is found, loading throws an instance of `ClassNotFoundException`.

Then the Java Virtual Machine attempts to derive a class denoted by `N` using the bootstrap class loader from the purported representation using the algorithm found in [§5.3.5](5.3.5.md). That class is C.
