I've recently installed j2sdk1.4.1, having previously been developing in jdk1.2.1 and my old code is not compiling as it can't find packages javax.servlet.* and javax.servlet.http.*. How can I fix this?

Alex Chaffee

The package javax.servlet is not in the standard J2SE libraries. It's included in j2ee.jar or servlet.jar. You can find these by downloading J2EE or Tomcat respectively.

(Tomcat is probably what you want -- it's a lot lighter.)

Then add the JAR to your classpath and you're all set.

See How do I set my CLASSPATH for servlets?
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact