Kevin Andryc writes:
I downloaded the Tomcat connectors (jakarta-tomcat-connectors-4.1.12-src)
and Ant version 1.5.1. I unzipped that to an appropriate directory and then
edited the build.properties file located in
jakarta-tomcat-connectors-4.1.12/jk. Such that it looks like this:
tomcat40.home=%TOMCAT_HOME%
apache2.home=%APACHE2_HOME%
apr.include=${apache2.home}/include
apr.lib=${apache2.home}/lib
so.debug=true
so.optimize=false
so.profile=false
I then ran "Ant" in the same directory and it came up with a lot of compiler
errors saying that it could not import "org.apache.tomcat.util.*" and that
the package does not exist. Those classes are found in tomcat-util.jar and
is located in %TOMCAT_HOME%/server/lib. I tried to put that in my CLASSPATH
environment variable and then ran Ant again, but still it had the same
errors. I am new to Ant and would appreciate any help.
Thanks,
Kevin
Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Hello Kevin, ant was designed w/ CLASSPATH in mind. namely, ant does not use the environment classpath at all. ant defines classpath as part of a pathelement attribute. look closely in ur build.xml file and u will see something like this: <path id="build.path">. the encompassing end tag complete the path id definition which will consist of 1 to many classes, jars and their paths. also, tomcat needs special jars like: servlet.jar found in a special directory: $CATALINA_HOME/lib. look closer and dig deeper. hope this helps, david.

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to