views:

110

answers:

3
+1  Q: 

java servlet

When I try to use javax.servlet.http.*; an error package does not exist is thrown. Should I want to reinstall java or it occurs due to some other problem. I'm using j2sdk 1.4.0 & Tomcat 6.0.

Thanks & Regards

+2  A: 

Guess servlet.jar is not on the classpath. Assuming you are on Windows, right click on My Computer -> Properties -> Advanced -> Environment Variables, and check your CLASSPATH entry.

Shivasubramanian A
A: 

You can get some help in installing the same here

Bharani
+1  A: 

You should not be using JDK 1.4. It's already past its support life. We're up to JDK 6 for production now. Tomcat 6 requires at least JDK 5 or higher. It's time to upgrade.

duffymo