2.7. Bootclasspath, Extensions Path, and Classpath

Java provides several mechanisms for configuring how classes are loaded, which do not require any explicit class loader code. One of these mechanisms, the classpath, is the only interaction with class loaders that some Java applications will ever need. The classpath provides a simple mechanism to specify a set of locations where your code can be found. Despite its simplicity, the classpath is the source of a great many headaches, even for experienced Java developers. By understanding the classpath in terms of the class loader architecture, though, you can avoid these problems or quickly troubleshoot them when they occur.

The classpath is only one part of Java's class loader configuration options. ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.