• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

HFSJ page 31

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what error yu seeing, is everything in proper place..
 
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic