At 12:31 24/01/2001, you wrote:
>I apologise in advance if this problem is stupidly simple, but I am a
>newcomer to Ant.
>I am running Ant 1.2, Jakarta-Tomcar 3.2.1, JDK 1.3, and all this on Win NT.
>I have modified the sample build.xml file to build a simple servlet. When
>I run Ant I get the following message
>
> [javac] File to be compiled:
> D:\Apache\jakarta-tomcat-3.2.1\webapps\Vince\src\Hello.java
>
> [javac]
> D:\Apache\jakarta-tomcat-3.2.1\webapps\Vince\src\Hello.java:67: cannot
> resolve symbol
> [javac] symbol : class ServletException
> [javac] location: package servlet
> [javac] import javax.servlet.ServletException;
> [javac] ^
>
>The complier repeats this for each import of the javax.servlet class.
>It seems that it cant find the javax.servlet package.
>I have tried pointing my classpath everywhere logical, and through
>frustration most places illogical - Has anybody any ideas how to solve
>this? I suspect that it is some sort of incompatibilty with jdk1.3 -
>Either that or something so simple that you will all be laughing at me!
>
>Any help would be appreciated.
Can you compile the class "manually" - i.e. javac Hello.java ?
One thing I've noticed under NT is that you have to add jar files
seperately - simply dropping them into the lib directory of the jdk
installation doesn't work. (i.e. you need to set the classpath using
classpath=.;c:\myclasses\servlet.jar;)
HTH,
JimC
--
* Jim Cheesman *
Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
Personal: [EMAIL PROTECTED] (34) 654 153 160
All the things I really like to do are either immoral, illegal or fattening.
--Alexander Woollcott