This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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