On Mon, 20 Aug 2001, Sheila Ratnam wrote:
> Do I have to place the servlet.java file in any specific directory to
> compile it? I have placed it inside a directory under ROOT, and from dos
> prompt made it the current directory and am trying to compile. Is that
> correct?
Ok - shouldn't make any difference where the source file is (I assume that
by servlet.java you mean the servlet you are trying to compile).
you should have something like:
SET CLASSPATH=c:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar
javac servlet.java
the only other thing I can think of is windows and long filenames might be
having arguments... a windows person might be better equipped to answer
that...
> I also tried compiling it in another directory, outside the tomcat
> structure, where I usually compile other java projects. But it gives the
> same error.
with the other projects... do you have any long filenames?
I suppose that getting _really_ paranoid, something like:
cd \
C:\> mkdir test
C:\> cd test
C:\test\> copy c:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar .
C:\test\> copy _your_servlet_ .
C:\test\> SET CLASSPATH=servlet.jar
C:\test\> javac _your_servlet_
should work.... mind you thats _very_ ridiculous and over the top, but if
the problem is the long filenames, then it will get around it....
hth
cheers
dim
>
> Sheila
>
>
> >From: Dmitri Colebatch <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: RE: Help Installing Tomcat on Win95
> >Date: Mon, 20 Aug 2001 10:41:27 +1000
> >
> >I'm assuming its a type.. but you have
> >c:jakarta-tomcat-4.0-b7\common\lib\servlet.jar rather than
> >c:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar - from memory that will be
> >resolved from the current c dir... so may not even be finding servlet.jar
> >
> >then again - if its just an email typo.... weird...
> >
> >cheers
> >dim
> >
> >On Mon, 20 Aug 2001, Sheila Ratnam wrote:
> >
> > > Rob & Pier, thanks for the help in getting my Tomcat server going.
> > >
> > > Now it's my first servlet that's not compiling! I have set the CLASSPATH
> >to
> > > c:jakarta-tomcat-4.0-b7\common\lib\servlet.jar; where the "servlet.jar"
> >file
> > > is. But when I try to compile the servlet, the error message says
> > > "javax.servlet package does not exist"
> > >
> > > What else could be the problem?
> > >
> > > TIA,
> > > Sheila
> > >
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>