2013年9月15日星期日

Great God came seeking help write the javac compiler command line problem .

Compile the current directory src \ com \ test \ app subdirectory all java source files. The compiled class file to the classes subdirectory under the current directory , the source file is referenced in the library file : server-api.jar, log4j-1.2.4.jar saved in the current directory under the lib subdirectory. Write the compile command .
system environment :
Windows environment
JDK installation directory is : C: \ Java \ jdk1.5.0
------ Solution ---------------------- ----------------------
wrong, it should be javac-cp.;.. / server-api.jar; ../log4j -1.2.4.jar-d .. / classes com / test / app / *. java


------ For reference only ---------------------------------- -----
advanced into your src directory where the project . Then
javac-cp.; ../lib/vertx-core-1.3.0.final.jar; ../lib/vertx-platform-1.3.0.final.jar-d .. / classes com / test / app / *. java
------ For reference only -------------------------- -------------
long time never wrote this thing , you try
javac -classpath .\libs\server-api.jar;.\libs\log4j-1.2.4.jar *.java -d .\classes

------ For reference only ----------------------------------- ----
this ,

To a one indicates to compile java files , there is no easy way to write it
------ For reference only ----------------- ----------------------
http://baike.baidu.com/view/1006557.htm

没有评论:

发表评论