Link to home
Start Free TrialLog in
Avatar of d97adka
d97adka

asked on

can't compile servlet, javac can't find servlet classes

when i try to compile a servlet file
with javac it can not find servlet classes for ex httpservlet
I already put classpath to tools.jar

and what should I do when this is done.
when I plase this class in my webdirectory (subdir servlets)
how to start it

Avatar of BillyAbbott
BillyAbbott
Flag of United Kingdom of Great Britain and Northern Ireland image

are you sure you have the servlet package?

type

javap javax.servlet.http.HttpServlet

if its on your classpath correctlythen you should get a list of its methods, if not it will return an error.

if it sin;t there, go to

http://java.sun.com/products/servlet/download.html#downloadsarchive

and download the servlet dev kit.
ASKER CERTIFIED SOLUTION
Avatar of conick
conick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of d97adka
d97adka

ASKER

Thanks