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.

Get new posts delivered straight to your inbox.

Subscriber count: 3,220