Search results

Java: Class path

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.

Sponsored content

For more details, see Setting the classpath.

Buy me a coffeeBuy me a coffee