I have this confusion regarding the classpath and sourcepath.I have referred to theselinks too but i aint getting it right. REFERENCES--
Regarding automatic recompilation, I can't spot the difference between javac's -classpath and -sourcepath options
Does it mean if we dont edit the source file,both classpath and sourcepath wouldnt be recompiled? Specifically,this line troubled me! Note that classes found through the classpath are subject to automatic recompilation if their sources are found. Can anyone explain this in simple language with SIMPLE EXAMPLES?It would be of great help!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With