classpaths
Classpaths (or the Java classpath) are a mechanism used by the Java platform and other JVM-based environments to locate class files and libraries at runtime. A classpath is a list of file system locations and archives, such as directories and JAR or ZIP files. The runtime searches these locations in a defined order to find a requested class or resource.
The classpath can be specified in several ways: via the CLASSPATH environment variable, or via the -cp
Class loading in the JVM uses a parent-first delegation model. When a class is requested, the loader
Practical notes: avoid over-reliance on a global CLASSPATH; use -cp in scripts for reproducible builds. Quotes