Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

-classpath & -sourcepath

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic