Is the Eclipse project Properties > Java Build Path > Libraries tab the analog of the java -classpath definitions? What is the difference between a “build path” and a “classpath”?
Is the Eclipse project Properties > Java Build Path > Libraries tab the analog
Share
The classpath is a Java thing. It’s a list of either folders or jar files to consider (in order) when resolving classes to be loaded. It’s used by the Java JVM. It can be specified by the CLASSPATH environment variable or
java -classpath. It’s a list of either Jar files or folders separated by a “:” on Linux/OSX systems or “;” on Windows.The Eclipse build path is a means to construct this Java classpath from artifacts in the Eclipse environment. The Configure Build Path dialog is used to manipulate a file in your project called .classpath (normally hidden). This dialog allows you to form the Java classpath from Jar files, files you have built, folders, external Jar files and other things. It also controls where the Java Development Tooling (JDT) will locate your compiled files, and other things related to class files. The Eclipse help has pretty good documentation on this.