File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes package does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package does not exist" Watch "package does not exist" New topic

package does not exist

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
such error i get in this line
import javax.servlet;
what shoul i change in my classpath to get rid of this error?
thank you in advance.
sijtsche smeman

Joined: Jun 30, 2003
Posts: 7
instead of import javax.servlet; use import javax.servlet.*; You should use this rule:
import packagename.classname; or * instead of classname for all classes in that package.
Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
sorry i made a mistake while typing the post, so what i actually have is:
import javax.servlet.*;
James Chegwidden
Ranch Hand

Joined: Oct 06, 2002
Posts: 201
Are you using J2EE? JSP/Servlets, Beans are used with the Enterprise Edition- not the Standard edition.

Author and Instructor, my book
Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
yes, i downloaded j2ee 1.4 sdk, added %installdir%/bin to the PATH and %installdir%/lib to the current CLASSPATH, but this package still is not found.
Susilo Saja
Ranch Hand

Joined: May 27, 2003
Posts: 91
Did you put the lib directory or the j2ee.jar file into the CLASSPATH? you need to put j2ee.jar into the CLASSPATH, not the lib directory
I agree. Here's the link:
subject: package does not exist
Similar Threads
Type Conversion in Assignment Context
DaysOld and classpath
weblogic workshop
HFSJ EL e.g. page 371
Struts2 Filter and Includes