When trying to compile a servlet that works on another installation of
tomcat I get this error.
----------------------------------------------------------------------------
javac MultiServlet.java
MultiServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
MultiServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
MultiServlet.java:7: cannot resolve symbol
symbol : class HttpServlet
location: class MultiServlet
public class MultiServlet extends HttpServlet {
^
MultiServlet.java:12: cannot resolve symbol
symbol : class ServletConfig
location: class MultiServlet
public void init(ServletConfig config) throws ServletException {
^
MultiServlet.java:12: cannot resolve symbol
symbol : class ServletException
location: class MultiServlet
public void init(ServletConfig config) throws ServletException {
^
MultiServlet.java:23: cannot resolve symbol
symbol : class HttpServletRequest
location: class MultiServlet
public void doPost(HttpServletRequest request, HttpServletResponse
response)
----------------------------------------------------------------------------
The servlet is good, so it can't be the code itself. Somebody told me I
need some jar files that are in the enterprise edition of java SDK.
so when I try to install it i get:
----------------------------------------------------------------------------
$ ./j2sdkee-1_4-beta-linux.sh
Using /var/tmp as temporary directory...
Searching for Java(TM) 2 Platform, Standard Edition...
Initializing InstallShield Wizard...
ERROR: could not initialize interface awt - exception:
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
----------------------------------------------------------------------------
What's the deal, and do I really need the enterprise edition?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]