Hi guys, I'm using eclipse and after writing a simple servlet, that works just fine, I decided to use ANT. Anyway, when running ANT I get this message:
I googelized the topic and learned that the classpath is the issue because it doesnt have the servlet.jar/ servlet-api.jar --- I placed them both on the classpath (under enviroment variable)....nothing! same error message by ANT! anyone? [ August 06, 2006: Message edited by: Bear Bibeault ]
The Ant javac task makes it easy to add items to your classpath wihtou having to copy them around your file system. That's a really bad idea as you can quickly lose control when upgrading to higher versions of the container.
In any case, as this is an Ant issue, moved to the Ant forum.
And of course a jarfile isn't automatically on the classpath just because it's in a directory that contains another jarfile that is on the classpath... Though with ant scripts it can look like that because many are set up to include every jar in a specific directory.
Using a system wide classpath is almost as bad an idea as moving every jarfile into a specific directory.