Hi, I am totally new to servlets and I am using JBuilder foundation and I wanted to write my first sevlet, but when I added the following import statement import javax.servlet.Servlet the Jbuilder compiler is giving the following error. "Class1.java": Error #: 302 : cannot access class javax.servlet.Servlet; neither class nor source found for javax.servlet.Servlet at line 2, column 22 Please help. Thanks, Krupa
Venugopal nandikolla
Greenhorn
Joined: Feb 02, 2001
Posts: 22
posted
0
Hi, I think you must go to the Project--> ProjectProperties--> RequiredLibraries---> and add the jar files(servlet.jar ... etc) then you can able to build the class file. Better use ant(from apache.org) tool for building the files and you can set it the jbuilder for compilation and cleaning the class files, generating the javadocs....etc -venu I am totally new to servlets and I am using JBuilder foundation and I wanted to write my first sevlet, but when I added the following import statement import javax.servlet.Servlet the Jbuilder compiler is giving the following error. "Class1.java": Error #: 302 : cannot access class javax.servlet.Servlet; neither class nor source found for javax.servlet.Servlet at line 2, column 22 Please help. Thanks, Krupa [/B]
krupa devi
Greenhorn
Joined: Jul 02, 2001
Posts: 14
posted
0
Venu, Thank you very much. It worked.If I want to use ant ( apache.org)where can I get information as what is it? why is it used and how to use it? Thanks, Krupa
Venugopal nandikolla
Greenhorn
Joined: Feb 02, 2001
Posts: 22
posted
0
Hi krupa, Great .... Go click on this link http://jakarta.apache.org/ and in the SubProjects part click on the Ant and download the jakarta-ant-1.3-bin.zip(if working on windows OS).Add ant.jar and antrunner.jar in your classpath and you customize the build.xml file as per your requirement you can just use c:\>ant will build all your class files. If you want to integrate the ant with JBuilder then I'll will give more info ,mail to my email-id. -venu venugopaln@yahoo.com
Rehan Malik
Ranch Hand
Joined: Jul 09, 2001
Posts: 76
posted
0
Originally posted by krupa devi: Hi, I am totally new to servlets and I am using JBuilder foundation and I wanted to write my first sevlet, but when I added the following import statement import javax.servlet.Servlet the Jbuilder compiler is giving the following error. "Class1.java": Error #: 302 : cannot access class javax.servlet.Servlet; neither class nor source found for javax.servlet.Servlet at line 2, column 22 Please help. Thanks, Krupa
If you just want to use ANY web server, then I would recommend using the free developer's edition of Allaire JRun. It is very easy to setup and can integrate with most of the web servers. It also have the capability of running as a web server by itself. http://www.allaire.com/products/jrun/