java -classpath %CLASSPATH%;f:\java1 hellojava1

解决方案 »

  1.   

    why did Sun never fix this classpath problem??you can also try
    f:>set path=.;%path%
    f:>cd java1
    f:>java hellojava1you'd better add 
    set path=.;%path%
    in your autoexec.bator change your environment variable "path" to include ".;"
      

  2.   

    反复练练classpath的摄制。我记得《程序员——Java专刊》上有文章讲得很透。