手动编译包含两个import自写类的java类。
cmd
(1)e:
(2)cd E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2srccomyxq oolbean
(3)javac -d E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2WEB-INFclasses *.java(会在目标目录生成class文件)
(4)cd E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2srccomyxqvaluebean
(5)javac -d E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2WEB-INFclasses *.java(会在目标目录生成class文件)
(6)cd E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2WEB-INFclasses
(7)javac -d . E: omcatapache-tomcat-7.0.79-windows-x64apache-tomcat-7.0.79webappsmy2srccomyxqservlet*.java
编译完成。