compile Servlet

when i try to compile servlet i got error message. it can't be identify servlet classes. why is that?

some books mention about class path to fix that problem. but i can't understand.

can any one explain little bit deep?

* i am using windows xp and tomcat server.

-thanks-

[305 byte] By [jeyrama] at [2007-11-27 9:56:58]
# 1

hi,

for example your tomcat in c:\tomcat5.0 means

set classpath=c:\tomcat5.0\common\lib\servlet-api.jar

or

set classpath=c:\tomcat4.1\common\lib\servlet.jar

or find servlet.jar or servlet-api.jar (thats depend upon your tomcat version)

give classpath for that jar file

and compile

drvijayy2k2a at 2007-7-13 0:27:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks friend, i did.
jeyrama at 2007-7-13 0:27:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...