Class path refers to a parameter that lets the Java Virtual Machine (compiler) know where to look to find the classes, packages and other files.

By default, the compiler looks in the current directory for the class files. If you’re compiling from the command line using Javac (instead of compiling from Eclipse, which uses its own compiler instead of the JDK), you may need to specify the class path if the source files aren’t in the current directory.

For more details, see Setting the classpath.

Stay current with the latest in tech comm
Keep current with the latest trends in technical communication by subscribing to the I'd Rather Be Writing newsletter. 4,500+ subscribers