some days back it was working but i don't why suddenly my java program is not compiling.
i have set classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar".
c:\> javac -classpath HowdyServlet.java
it shows error in import java.servlet;
statement and likewise in all HttpServlet lines too.
or
i have tried the other way too..
c:\>javac -classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar".
the above is also not working.
help me to sort out this problem.

of course it does, if that's really your command for the compiler you just cleared the classpath.

if that is so, then also i have again set the classpath variable to lib\servlet.jar shown above.
classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar".
and compiled it as-
c:\>javac HowdyServlet.java
then also it's not working
any guesses!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.