Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

package javax.servlet.http does not exist

800295Apr 16 2005 — edited Jul 30 2008
When 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
----------------------------------------------------------
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2008
Added on Apr 16 2005
11 comments
5,892 views