Where's that javax?
I am trying to compile a simple
servlet with the statements
import javax.servlet.*
import javax.servlet.http.*
at the top. The compiler (running through TextPad) claims that the javax.servlet and javax.servlet.http packages do not exist. In running around this problem, I know there are a bunch of issues, but I can't figure it all out.
It appears that
Tomcat is able to run a .class servlet, but the compiler is not able to compile one. What's different?
On a Windows 2000 system,
The CLASSPATH is:
C:\CoreJavaBook;.;.\lib;C:\jdk1.3;C:\jdk1.3\jakarta-tomcat3.2.1\lib;
The JAVA_HOME is:
c:\jdk1.3
The TOMCAT_HOME is:
c:\jdk1.3\jakarta-tomcat-3.2.1
When I start up Tomcat, it generates a message about all the .jar files it is including:
<message>
C:\jdk1.3\jakarta-tomcat-3.2.1\bin>startup
Including all jars in c:\jdk1.3\jakarta-tomcat-3.2.1\lib in your
CLASSPATH.
Using CLASSPATH:
c:\jdk1.3\jakarta-tomcat-3.2.1\classes;c:\jdk1.3\jakarta-tomcat
-3.2.1\lib\ant.jar;c:\jdk1.3\jakarta-tomcat-3.2.1\lib\jasper.jar;c:\jdk1.3\jakarta-tomcat-3.2.1\lib\jaxp.jar;c:\jdk1.3\jakarta-tomcat-3.2.1\lib\parser.
jar;c:\jdk1.3\jakarta-tomcat-3.2.1\lib\servlet.jar;c:\jdk1.3\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\CoreJavaBook;.;.\lib;C:\jdk1.3;C:\jdk1.3\jakarta-tomcat3.2.1\lib;;c:\jdk1.3\l ib\tools.jar
</message>
I don't understand what "javax.servlet.http.*" is supposed to look like in the filesystem. "javax" seems to be a directory, with a "servlet" subdirectory, filled with .java files and an "http" directory. I don't see any .class files there.
How is the servlet.jar file related to all this? It is in several of the folders, but doesn't seem to be what the compiler is looking for. I don't see any files named javax, only folders.
Thanks for any and all insights!
Regards,
William C