I'm on windows XP and I'm using tomcat 5.0.28 as my jsp/servlet server.
I simply want to compile and run a servlet but I'm having problems that I'm sure are related to the classpath env variable.
I bought the book "core Servlets and JavaServer Pages" by Marty Hall & Larry Brown and I'm following the instructions for setting up a servlet that uses packages, however, it doesn't work.
I set my CLASSPATH variable to tomcat's "servlet-api.jar" file and also set a value for the directory I'm developing the app in which is "webapps/myapp" in the tomcat install dir.
I put a servlet called "Index.java" into the myapp/WEB-INF/classes directory and attempted to compile using "javac Index.java" while in the above-mentioned directory...and I get errors telling me "javax.servlet.* does not exist" and "javax.servlet.http.* does not exist" and it of course goes on to fail anywhere I reference a class belonging to those packages.