Title is what I want to know, and then I searched the Internet.
Here are some of the words you see in some posts
===========================================================
The standard javac can be followed by an @ plus a file name, which saves a list of source files, using the following command:
Javac @sourcefile
===========================================================
cd XXX
Dir *.java/s/b > Srclist.txt
or dir x:/yyy/zzz/*.java/s/b > Srclist.txt
JAVAC-CP.; xxx/yyy/zzz.jar;x/y/z.jar-d classes @srclist. txt
===========================================================
Write a file source.txt, which reads as follows:
A/a1/a1.java
A/a2/a2.java
A/a3/a3.java
Then run javac-d classes @source. txt
===========================================================
Under Windows.
Where SRC is the directory where source code is stored.
COM is the root package.
CD src
Dir *.java/s/b > Srclist.txt
Javac-classpath.; lib/thumbelina.jar;lib/scheduling.jar;lib/sax2.jar;lib/h
Tmlparser.jar;lib/htmllexer.jar;lib/filterbuilder.jar;lib/brokenwin_utility.jar;
-d com @srclist. txt
===========================================================
#这个, the main is to do a separate Java project, it does not rely on the IDE, but also to compile and run on someone else's computer
#下面编译运行用到了jar包, properties file
#首先进入项目的根目录下
#注意: Each line, indicating: The DOS system will execute the instructions
#G:
#cd Testjava
#上面, two commands for impersonation, enter the project root directory (specific directory, according to the directory of your own program)
Javac-classpath.;.. /previousrecord.properties, .... /lib/jtds-1.2.5.jar;com/cjb/properities/jdbc.properties Com/cjb/jdbc/*.java com/cjb/client/*.java-encoding UTF-8
#上面命令, means: Compile all Java classes under COM/CJB/JDBC and Com/cjb/client, These classes use the Previousrecord.properties file (its path is relative) and the Jtds-1.2.5.jar file jar package (its path is also relative), while the encoding used is UTF-8
Java-xms64m-xmx512m-cp.;.. /previousrecord.properties, .... /lib/jtds-1.2.5.jar;com/cjb/properities/jdbc.properties com/cjb/client/maildispatcheroperation
#上面命令, said: Execute com/cjb/client under Maildispatcheroperation.class (it has the main function)
===========================================================
It takes time to study an article that has not been read for the moment
Using the DOS command line, compile the Java source program in multiple directories (packages) with Javac
http://blog.csdn.net/cangwu_lee/article/details/6172034
===========================================================
Some places do not understand very well, speculate on their meaning, a simple test, record the test situation
Test A
Suppose the project source directory is SRC
Enter the directory from the console
Type the command: dir *.java/s/b > Srclist.txt, enter
In this directory you get a file named Srclist.txt, which writes the full path to all. java files under SRC.
Create a new classes directory under the SRC directory
Then type the command in the console: javac-d classes @srclist. txt, enter
Get the. class file for the project in the classes directory
Test Two
There are other things, but for me there is a way to test one, so for the time being don't write
Javac compile. java files under multiple packages at once