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 us
ed
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options

解决方案 »

  1.   

    javac java文件 -d 文件夹名注意:文件夹要先建立,否则报错 
    under jdk1.4
      

  2.   

    最好使用ANT进行管理,比单纯的javac强多了,强烈推荐。
      

  3.   

    可以看我的这篇文章,如果悟性性够高,结合-d命令,就可以方便的解决问题了
    http://www.csdn.net/develop/read_article.asp?id=21736如果看了还是不能理解,有时间我会考虑再写一篇,完整的解决方案