.class
files are related to Java.
You write your code in java, it is compiled by javac
into bytecode. The bytecode is stored in the .class
files, and further interpreted by the Java virtual machine (JVM).
About .classpath on Wikipedia:
Similar to the classic dynamic loading behavior, when executing Java programs, the Java Virtual Machine finds and loads classes lazily (it loads the bytecode of a class only when this class is first used). The .classpath tells Java where to look in the file-system for files defining these classes.
So the .classpath mechanism is related to Java, and is handled by eclipse thanks to the .classpath file.
Hope it helps :)