This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use javac -classpath