tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swapneel Dange" <s_da...@hotmail.com>
Subject RE: compiling servlets !
Date Wed, 12 Feb 2003 23:03:08 GMT
hi Wendy !

i tried the stuff u said about compiling the SERVETS, but only thing it does 
is to give me errors like these --

                                                       ^
HelloWorld.java:21: illegal escape character
        out.println("\cf2 </body>\cf0 ");\par
                      ^
HelloWorld.java:21: illegal escape character
        out.println("\cf2 </body>\cf0 ");\par
                                  ^
HelloWorld.java:21: illegal character: \92
        out.println("\cf2 </body>\cf0 ");\par
                                         ^
HelloWorld.java:22: illegal escape character
        out.println("\cf2 </html>\cf0 ");\par
                      ^
HelloWorld.java:22: illegal escape character
        out.println("\cf2 </html>\cf0 ");\par
                                  ^
HelloWorld.java:22: illegal character: \92
        out.println("\cf2 </html>\cf0 ");\par
                                         ^
HelloWorld.java:23: illegal character: \92
    \}\par
    ^
HelloWorld.java:23: illegal character: \92
    \}\par
      ^
HelloWorld.java:24: illegal character: \92
\}\f1\par
^
HelloWorld.java:24: illegal character: \92
\}\f1\par
  ^
HelloWorld.java:24: illegal character: \92
\}\f1\par
     ^
HelloWorld.java:24: '{' expected
\}\f1\par
         ^
HelloWorld.java:26: illegal character: \0

^
100 errors

C:\tomcat\jakarta-tomcat-3.3.1a\jakarta-tomcat-3.3.1a\webapps\swapneel\WEB-INF\c
lasses\swapneel\servlets>


I am not sure as to what i am doing wrong here. when i was using the JIGSAW 
webserver, i think it was working fine but here in TOMCAT i am not able to 
find the SOLUTION for this EZ problem.


Swapneel Dange
505-642-4126
http://www.cs.nmsu.edu/~sdange










>From: Wendy Smoak <Wendy.Smoak@asu.edu>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
>Subject: RE: compiling servlets !
>Date: Wed, 12 Feb 2003 15:50:34 -0700
>
> > 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


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message