Ubuntu Forums Archive Viewer

trouble using servlet package

Archived thread 1128010 from Ubuntu Dev Link Forum. Markdown source: Ubuntu_Dev_Link_Forum/thread_1128010_trouble_using_servlet_package.md

Original URL About this archive
#1

Below is what i have in my HelloServlet.java file

import java.io.*; import javax.servlet.*;

public class HelloServlet extends GenericServlet {

}

and I tried to build and following errors:

./HelloServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ ./HelloServlet.java:4: cannot find symbol symbol: class GenericServlet public class HelloServlet extends GenericServlet ^ I tried to install every relevant package but still no avail. If you could let me know, what package will get rid of this this message, that will be a huge help. Thanks!