java -cp ".;.\ojdbc6.jar;WEB-INF\lib\commons-dbcp2-2.0.1.jar" TestJDBC
java -cp ".\classes;lib\*.jar" com.DH.M
javac -classpath WEB-INF/classes -d WEB-INF/classes -sourcepath src/com/DH/PowerInfo.java
javac -d WEB-INF/classes -sourcepath src -classpath WEB-INF/classes src/com/DH/PowerInfo.java;src/com/DH/M.java
javac -d WEB-INF/classes -sourcepath src -classpath WEB-INF/classes;./WEB-INF/lib/*.jar src/com/DH/*.java
javac -d WEB-INF/classes -sourcepath src -classpath WEB-INF\lib\commons-dbcp2-2.0.1.jar src/com/DH/*.java
javac -d WEB-INF/classes -sourcepath src -classpath WEB-INF\lib\dbcp2.jar src/com/DH/*.java
java -cp ".\classes;lib\dbcp2.jar;lib\pool2.jar;lib\logging.jar;lib\ojdbc6.jar" com.DH.M
javac -d WEB-INF/classes -sourcepath src
-classpath "WEB-INF\lib\dbcp2.jar;WEB-INF\lib\dbutil16.jar;WEB-INF\lib\fastjson1
5.jar" src/com/DH/*.java
java -cp ".\classes;lib\dbcp2.jar
;lib\pool2.jar;lib\logging.jar;lib\ojdbc6.jar;lib\dbutil16.jar;lib\fastjson15.ja
r" com.DH.M
javac -d WEB-INF/classes -sourcepath src -classpath "WEB-INF\lib\dbcp2.jar;WEB-INF\lib\dbutil16.jar;WEB-INF\lib\fastjson15.jar" src/com/DH/*.java
java -cp ".\classes;lib\dbcp2.jar;lib\pool2.jar;lib\logging.jar;lib\ojdbc6.jar;lib\dbutil16.jar;lib\fastjson15.jar" com.DH.M
javac -d classes -sourcepath src -classpath "lib\dbcp2.jar;lib\dbutil16.jar;lib\fastjson15.jar" ../src/com/DH/*.java
java -cp ".\classes;lib\dbcp2.jar;lib\pool2.jar;lib\logging.jar;lib\ojdbc6.jar;lib\dbutil16.jar;lib\fastjson15.jar" com.DH.M
原文:http://www.cnblogs.com/xianyun/p/4641804.html