Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

problem in servlet compilation

 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
    Bookmark Topic Watch Topic
  • New Topic