是啊,^_^,可以有一个编译工程的
或者
也可以编译那个main,他会自动编译其它的

解决方案 »

  1.   

    不大懂意思啊.你也可以有多个MAIN啊....
    但每次只能运行一个MAIN.
      

  2.   

    在编译阶段应该是每个java文件单独编译的吧,跟main函数好像没什么关系吧.
    在link阶段才会涉及main函数吧
      

  3.   

    放到一个目录下啊,javac *.java ?
    不知道用ANT编译怎么样啊?不过要先建一个build.xml然后就可以同时编译!
      

  4.   

    javac *.javaUsage: 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
      

  5.   

    把多个文件放在一个目录下,然后切换到这个目录作为当前工作目录,用命令行:
    javac *.java