I have this confusion regarding the classpath and sourcepath.I have referred to theselinks too but i aint getting it right. REFERENCES--
The sourcepath is the path to the sources you are compiling.
The classpath is a path (or multiple paths) to libraries you are compiling against. These are compiled classes, either in folders or Jar files.
Sourcepath tells javac where to grab the source code from. Classpath tells javac where to grab other class files that will allow your source code to compile.