做一个bat文件,例如makejava.bat:@echo off
rem makeJava.bat
rem
rem This batch file is a quick way to compile all the source in
rem the source directory into the classes directory.
rem It uses the javados.lst file to give the list of files
rem to be compiled to javac.echo Compiling all CoolForum source code...
javac -sourcepath source -d classes @javados.lst
javados.lst:.\source\com\mywork\tools\yourname.java
.\source\com\mywork\bean\yourname.java
.\source\com\mywork\login\servlet\yourname.java