Since it doesn't seem as though my entire email was fowarded I will include
it in this reply. I downloaded an extracted the POI source to a "Java Dev"
folder under the "MY Documents" folder on my Win2K box. I cd'ed to this
directory and called the build batch script which runs fine. When it
prompts me for a target I enter test hit the enter key and get an error
stating that it can't find the org/apache/tools/ant/BuildException class
and that the build failed. I copied the results from my test in my orignal
email. You can reference this below.

Thanks for your help,
Cliff

Original email below:
I'm getting frustrated with my POI build too. I've been told it's because I
didn't have ant originally and so I downloaded and installed it. I set the
ANT_HOME env variable and put ANT_HOME\bin in my path. I also put the ant
jar file in my classpath. Whenever I run the test target from the POI build
I get this:

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.TestBasi
c failed

Total time: 17 seconds

C:\Documents and Settings\craic0ld\My Documents\Java
Dev\jakarta-poi-1.8.0-dev-s
rc>echo %CLASSPATH%
.;C:\Java\ant\jakarta-ant-1.5.1\lib\ant.jar;C:
\Java\lib\jtopen_3_0\lib\jt400.jar
;C:\JClass;C:\JClass\build\jakarta-poi-1.5.1-final-20020615.jar;C:
\Documents and
 Settings\craic0ld\My Documents\Java Dev\work

Note how I've echoed my classpath to make sure that ant.jar is available.
At the start of the build execution it echoes that it's using a modified
classpath set (as I've also verified) by the build file. It also says it's
using Jakarta Ant version 1.5 alpha. I don't see this refenced in the
modified classpath so where is it finding it? Is it the build that's hosed
up or is it my configuration? What am I doing wrong?




Nicola Ken Barozzi <[EMAIL PROTECTED]>
11/13/2002 10:15 AM





Please respond to "POI Users List" <[EMAIL PROTECTED]>

To:    POI Developers List <[EMAIL PROTECTED]>
cc:    poi-user <[EMAIL PROTECTED]>

Subject:    Re: POI build not working




Andrew C. Oliver wrote:
> Gosh...could one of the windows geeks look into this?
>
> [EMAIL PROTECTED] wrote:
>
>> I'm getting frustrated with my POI build too. I've been told it's
>> because I
>> didn't have ant originally and so I downloaded and installed it.

POI builds with the included ant and teh included scripts.
It should be that users CD into the poi dir and run the build script.

What is it you are getting as an error?

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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









--
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