difference between classpath and sourcepath?

后端 未结 2 1665
迷失自我
迷失自我 2021-01-07 00:52

I have this confusion regarding the classpath and sourcepath.I have referred to theselinks too but i aint getting it right. REFERENCES--

Differences between classp

相关标签:
2条回答
  • 2021-01-07 01:13

    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.

    0 讨论(0)
  • 2021-01-07 01:26

    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.

    0 讨论(0)
提交回复
热议问题