try this. javac -classpath [The path to your jar file] LoadAtStartup.java
[EMAIL PROTECTED] wrote:
Hi,
I have for the past few hours been pulling my hair out trying to compile a simple servlet. I haven't even got to the stage of trying to implement it. I have the default Tomact installation. defined in my classpath:
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
and checked that it is there..it is.
I have the servlet
C:\Program Files\Apache Group\Tomcat 4.1\webapps\mydir\WEB_INF\classes\LoadAtStartup.java
yet when I attempt to compile the file I get the errors:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\mydir\WEB-INF\classes>javac LoadAtStartup.java
LoadAtStartup.java:6: package javax.servlet does not exist
import javax.servlet.*;
^
LoadAtStartup.java:7: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
2 errors
What is the problem here?! I have seen it documented in countless web sites that this is what must be done. I have done it, and it does not compile! This is my last avenue! All input appreciated.
Paul.
P.S By classpath I mean settings - system - environment variables and edit 'path' (Windows OS)
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
