This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes -classpath & -sourcepath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "-classpath & -sourcepath" Watch "-classpath & -sourcepath" New topic
Author

-classpath & -sourcepath

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
what is difference between -classpath option and -sourcepath option?
Thanks
Angela
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: -classpath & -sourcepath