• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use javac -classpath

 
yatiish sharma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic