This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Compilation using classpath
javac sourcepath classpath options
javac and -classpath option
Compiling multiple source files
Related to Javac Command