Hello, Im trying to compile MyFristServlet.java. But Igot errors on simple lines such as "import javax.servlet.*;" I belive that Im missing a jar-file clalled "servlets.jar" I have 2 java-dirs, "C:\Java\j2sdk1.4.1_03" & "C:\Program\Java\j2re1.4.1_03". But none of theme contains servlets.jar. Do I need j2ee or something more? My compiling error is: cannot resolve symbol.
Absolutely. You need a J2EE implementation, which will contain a jar containing the needed classes. Depending on which J2EE implementation you get (Tomcat, Weblogic, etc), it may or may not be named 'servlet.jar'.
Hi Sebastian, Your best bet is to download the Tomcat-5 Servlet container, it contains a "sevlet.jar" file you can place in your path when compiling. Read the Tomcat docs re configuring the web.xml file, assembling your web app, deploying it, and then running it. Its a bit of a learning curve but once you have done it a few times it becomes second nature. [ January 31, 2004: Message edited by: Louis M@lenica ]