• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to compile servlet  RSS feed

 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • 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. pls do guide me if i have to do any setting changes or if i need to install other j2ee version.

Looking for some prompt responses.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shubhra chauhan:
pls do guide me ....


Please use real words when posting to the forums. Abbreviations such as "pls" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

Looking for some prompt responses.


Not a good idea. Please read this for more information.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a FAQ entry on this subject that might help to get you going.

http://faq.javaranch.com/java/CompilingServlets
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!