package javax.servlet.http does not exist
800295Apr 16 2005 — edited Jul 30 2008When I compiled this file, the following error occurred, I remembered I have to add extra 'things' in the command line prompt, but forgot.
anyone can help? thx. :)
-------------------------------------------------------------------
C:\Program Files\Apache Tomcat 4.0\webapps\c7\WEB-INF\classes\c7>javac Connectio
nManager.java
ConnectionManager.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
ConnectionManager.java:15: cannot resolve symbol
symbol : class HttpSessionBindingListener
location: class c8.ConnectionManager
public class ConnectionManager implements HttpSessionBindingListener
^
ConnectionManager.java:78: cannot resolve symbol
symbol : class HttpSessionBindingEvent
location: class c8.ConnectionManager
public void valueBound(HttpSessionBindingEvent event)
^
ConnectionManager.java:95: cannot resolve symbol
symbol : class HttpSessionBindingEvent
location: class c8.ConnectionManager
public void valueUnbound(HttpSessionBindingEvent event) {
^
4 errors
----------------------------------------------------------