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
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
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