• Post Reply Bookmark Topic Watch Topic
  • New Topic

-classpath & -sourcepath  RSS feed

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is difference between -classpath option and -sourcepath option?
Thanks
Angela
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!