I downloaded ant. I unzipped it to my Java directory. I set %ANT_HOME% to
where I installed it.  I also
put %ANT_HOME%\bin in my path environment variable so that the build script
can find ant.bat. I still get the same error. I then set my CLASSPATH to
reference ant.jar (I actually verified that
org/apache/tools/ant/BuildException is in this jar.) I still get the same
error. Obvoiusly the classpath is getting changed when I run the build.bat
file from the source download package. I don't know what it's being changed
to and I don't know why. Does it run the ant build script from the
%ANT_HOME% directory? If so, does this or any other script modify the
CLASSPATH to locate the ant.jar? I'm confused and ready to give up.

Cliff

PS. With all due respect, I am broadcasting this message to the user list
so all can learn and have the opportunity to help me on this one. I didn't
even realize we were carrying on a private thread until just now.



[EMAIL PROTECTED]
11/12/2002 11:22 AM





To:    [EMAIL PROTECTED]
cc:

Subject:    Re: Help wanted... Me and my big mouth


> I just ran some more tests with the build file on my Win2K box. I
realized
> what the target prompt was for after a couple of tries. So now I select
> thetest target rather than the default [all]. I'm getting the following:
>
> test:
> Running org.apache.poi.hpsf.basic.TestBasic
> java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
> Exception in thread "main"
>
> BUILD FAILED
> C:\Documents and Settings\craic0ld\My Documents\Java
> Dev\jakarta-poi-1.8.0-dev-s
> rc\tools\cents\junit.cent\xbuild.xml:59: Test
> org.apache.poi.hpsf.basic.TestBasic failed

I think you do need to get yourself a copy of ant.  Unzip
the files, and make sure you set the environment string
%ANT_HOME% to wherever you installed it.  I think you also
need to put %ANT_HOME%/bin in your path environment variable
so that the build script can find ant.bat.

I don't recall downloading anything else like centipede
or millipede to make this work -- just ant.

cheers,

jc









--
To unsubscribe, e-mail:   <mailto:poi-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:poi-user-help@;jakarta.apache.org>

Reply via email to