通过javac编译java文件
1.先导入需要引用的包
D:Program Files (x86)apache-tomcat-7.0.53webapps estWEB-INFclasses>set cla
sspath=%classpath%;D:Program Files (x86)apache-tomcat-7.0.53libservlet-api.j
ar
2.将java文件按包名称编译到当前文件夹
D:Program Files (x86)apache-tomcat-7.0.53webapps estWEB-INFclasses>javac -
d . FirstServlet.java