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? Cliff "Andrew C. Oliver" <[EMAIL PROTECTED]> 11/13/2002 01:04 AM Please respond to "POI Users List" <[EMAIL PROTECTED]> To: POI Users List <[EMAIL PROTECTED]> cc: Subject: Re: POI build not working Bad interperator means that the "shebang" at hte top of the file is misformed #!/bin/sh - might sh be somewhere else? It can also mean that you've DOS-ized your line feeds. (I'm betting its that) John Larsen wrote: >Hello, > >I've tried everything to install POI 1.5.1 from source distro. > >I could not find any information on the jakarta site regarding POI >installation. > >so i tried sh build.sh and ./build.sh and it has problem with the ant files >in the POI distribution: >Using classpath: >"./lib/endorsed/xalan-2.2.0.jar:./lib/endorsed/xerces-2.0.0.jar:./lib/endors >ed/xml-apis.jar" >build.sh: /home/admin/downloads/java/poi/tools/antipede/bin/ant: bad >interpreter: No such file or directory > >This prompted me to modify the build.sh to point directly to the POI/ant >location. I still got bad interpreter: No such file or directory. > >I tried modifying the build.sh to point to my ant install in >/usr/local/ant/bin/ant >the build started but failed with this info: >file:/home/admin/downloads/java/poi/tools/antipede/build.xtarget:168: >/home/admin/downloads/java/poi2/tools/cents/centipede.cent.cent not found > >This just doesnt want to install! What am i missing? > >RH linux 7.2 (ensim webppliance) >Jakarta tomcat 4 > >Thanks! > >John Larsen > > > >-- >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> -- To unsubscribe, e-mail: <mailto:poi-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:poi-user-help@;jakarta.apache.org>
