File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
 
subject: -classpath & -sourcepath
 
Similar Threads
javac and -classpath option
Compiling multiple source files
javac sourcepath classpath options
Related to Javac Command
Compilation using classpath