
XDic.java:6: Package javax.servlet not found in import.
import javax.servlet.*;
However, it is easy to recognize that this error is linked to an incorrect
classpath: If the compiler cannot find a package, it’s a sure sign that the
classpath is incorrect.
CAUTION
Neither the compiler nor the JVM will issue a warning if there are invalid directories in
the classpath.
Invalid directories are ignored but, of course, these invalid directories still cause prob-
lems because the JVM cannot find your classes.
4. In the following example, because the classpath does not contain a ref-
erence to the current path , the JVM cannot find the classes:
set classpath=c:\jetty\lib\javax.servlet.jar; ...