> But i guess i am having problems 
> with the compilation of the SERVLETS on the tomcat. I have also deifned
the 
> classpath as following :
>
C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar

Is that really the location of servlet.jar?  With jakarta-tomcat-3.3.1a in
it twice?

> and while compiling i am using the following command :
> javac -classpath HellowWorld.java , but what this command does is nothing.
i 
> mean there is no class file generated for this one.

No, because you haven't specified one.  When you use -classpath, the very
next thing is taken as the classpath.  So you've told the compiler that
classpath=HellowWorld.java, and you have not specified a file to compile.
That's why it's not doing anything.

If you're setting the classpath as an environment variable, then _don't_ use
the command line switch.    I prefer to use ant, or to specify the classpath
on the command line.

Try this:

javac -classpath
C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\lib\common\servlet.jar
HellowWorld.java

(Was that a typo?  Is it really HelloWorld.java?)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to