I am getting one error in compilesation of servlet progrm.the error is package import javax.servlet.*; does not exist.how to rectify my problem

Recommended Answers

Simple, you used only javac YOUR_JAVA_FILE and did not included path to "servlet-api.jar", check point 5 of this book reference

Jump to Post

All 2 Replies

Simple, you used only javac YOUR_JAVA_FILE and did not included path to "servlet-api.jar", check point 5 of this book reference

I am getting one error in compilesation of servlet progrm.the error is package import javax.servlet.*; does not exist.how to rectify my problem

Set CLASSPATH for servlet-api.jar in your environment variables

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.