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 how  to use   javac -classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how  to use   javac -classpath" Watch "how  to use   javac -classpath" New topic
Author

how to use javac -classpath

yatiish sharma
Greenhorn

Joined: Apr 26, 2006
Posts: 1
my java file is not able to read adjacent class files during compiling
so please tell me how to use
javac -classpath


thanks
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi,
While compiling just say javac *.java this will take the adjecent classes or javac -classpath "<classpath>" <filename> can also be used.

Hope this helps

Regards,
Sivaraman.L
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Read Sun's Setting the Classpath and then see if this tutorial helps. BTW: Only take that 2nd one as far as sounds useful and sensible right now. If it goes beyond what you need, just stop.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use javac -classpath
 
It's not a secret anymore!