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 difference between a source file and a class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference between a source file and a class file" Watch "difference between a source file and a class file" New topic
Author

difference between a source file and a class file

K Ville
Ranch Hand

Joined: Aug 16, 2003
Posts: 58
I'm quite confused with the use of javac -sourcepath and javac -classpath. What makes the difference?


Thinking is the talking of the soul with itself...-Plato
Igor Ko
Ranch Hand

Joined: Jun 24, 2002
Posts: 90
sourcepath - where to find sources files, with text
of java program.
Class path - in your sources you can use already compiled classes
(for example your friend wrote some class but you don't have
his source text, but only compiled version .class), if you
wish to use the class in your program, compiler should check
signature of functions (it likes h file in C/C++)),
so you should set classpath to point such files.
[ December 22, 2003: Message edited by: Igor Ko ]
K Ville
Ranch Hand

Joined: Aug 16, 2003
Posts: 58
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between a source file and a class file
 
Similar Threads
Regarding Sun Java System Application Server9.1 Issue with JVM5
javac running slow
javac and java
Unable to get make file running?
When I change path value in system variables my laptop bluetooth device got disabled,why it happens?