File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes problem in servlet compilation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

problem in servlet compilation

shubhra chauhan

Joined: Aug 31, 2007
Posts: 21
I have java EE 5 SDK on my system. I set CLASSPATH variable to servlet-api.jar and PATH variable to C:\sun\sdk\bin.
I have been trying to run a servlet but compiler is giving error:
package javax.servlet.http does not exist.

Initially it was giving package javax.servlet does not exist. But after setting PATH to javax pakage, the compiler has shown package javax.servlet.http does not exist error.

I just want to run a simple servlet. please do guide me if i have to do any setting changes or if i need to install other j2ee version.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410


Please stop posting this question here.
Your first post was moved to Java In General (Beginner) because that's were we discuss classpath and javac issues (even when trying to compile servlets)

Please continue here:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: problem in servlet compilation
It's not a secret anymore!