Greetings:
I have just installed
Tomcat 5.5 on my Windows XP notebook and I am trying to compile my first
servlet -- the beerApp in HFSJ. The
Java compiler complains that it can't find the javax.servlet.* and javax.servlet.http packages.
I found the FAQ on JavaRanch about setting CLASSPATH to TOMCAT_INSTALL_DIRECTORY/common/lib/servlet-api.jar, which in my case is ...
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Java\jdk1.5.0_07\bin;c:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar
A few things:
- I still get the same compiler error - even after rebooting
- When I enter the PATH command in the DOS shell, it does not show the same CLASSPATH setting I made in Control Panel -> System -> Environmental Variables. Are PATH and CLASSPATH the same? DOS doesn't seem to recognize CLASSPATH
- Does my CLASSPATH look at least plausable?
c:\Program Files\Java\jdk1.5.0_07\bin;c:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar
Thanks, -Brad