Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet compilation error

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using JDK1.2.2 and Tomcat.
I have servlet file in c:\jakarta-tomcat\webapps\example\WEB-INF\classes. Do I need to set any other variables/values for compiling servlets ?
I have following variables set :
CLASSPATH = c:\jdk1.2.2;
PATH = c:\jdk1.2.2;c:\jdk1.2.2\bin;c:\jakarta-tomcat\src\;
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to include the servlet.jar file that has all of the servlet related classes somewhere that your compiler can see it.
Servlet classes are standard extensions so you might put it with the other standard extension JAR files.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic