javac « Compile « JSP-Servlet Q&A





1. Compiling servlets with javac    stackoverflow.com

I want to compile servlets outside of NetBeans. I made a simple Hello World servlet that produced these compiler errors.

import javax.servlet.ServletException;           ...

3. Why can't use javac to compile servlet?    coderanch.com

I don't think that's it. If Lowera didn't have J2EE installed or pointed to that incorrectly the error would be different, indicating the import could not be found. My guess is that the import statements follow something other than the package declaration, other imports, whitespace or comment. Lowera, can you post your code until these import statements? [ July 15, 2008: ...