File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

problem in servlet compilation

shubhra chauhan
Greenhorn

Joined: Aug 31, 2007
Posts: 21
Hi
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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

shubhra,

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:
http://www.coderanch.com/t/410492/java/java/unable-compile-servlet


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in servlet compilation