Setting CLASSPATH as Environment Variable Java Classpath separators are OS specific. The Java interpreter will look for classes in the directories in the order they appear in the classpath variable.
” (dot), meaning that only the current directory is searched for dependencies.
During runtime of any Java application, the CLASSPATH is a parameter that tells the JVM where to look for classes and packages. Learn how to set classpath in Java either as an environment variable and pass as the command-line argument.