how to set classpath for a Java program on hadoop file system
===

I am trying to figure out how to set class path that reference to HDFS? I cannot find any reference. 

     java -cp "how to reference to HDFS?" com.MyProgram 

If i cannot reference to hadoop file system, then i have to copy all the referenced third party libs/jars somewhere under $HADOOP_HOME on each hadoop machine...but i wanna avoid this by putting files to hadoop file system. Is this possible?
