• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ page 31

 
qd wangqun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good night everyboy,i have a question ,please look at HFSJ page 31,the 5 step "%javac -classpath /your path/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java" is error

I dont know the reason why
 
S Vilish
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what error yu seeing, is everything in proper place..
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
javac -classpath /your path/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java

This command is trying to compile the servlet Ch1Servelet.java. HEre -classpath option is including the classes the servlet-api.jar into the classpath for successful compilation of the servlet. Make sure -classpath <Servlet-api.jar Path> is correct and does include the jar file.

Next time, try to give as must information with the query so that it becomes easier to answer the query.
[ January 12, 2008: Message edited by: Deepak Jain ]
 
qd wangqun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deepak Jain:
Hey,
javac -classpath /your path/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java

This command is trying to compile the servlet Ch1Servelet.java. HEre -classpath option is including the classes the servlet-api.jar into the classpath for successful compilation of the servlet. Make sure -classpath <Servlet-api.jar Path> is correct and does include the jar file.

Next time, try to give as must information with the query so that it becomes easier to answer the query.

[ January 12, 2008: Message edited by: Deepak Jain ]


Thank you so much !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic