javac I:\javatest\HelloWorld.java
JVM会把javac 后面的整一串看作java源文件名,所以你要先进入文件所在路径看看翁凯的JAVA视频,讲得不错

解决方案 »

  1.   

    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files
      -cp <path>                 Specify where to find user class files
      -sourcepath <path>这里!   Specify where to find input source files