This is too wierd for me to let it go. Why does the build work on Win2K? Is
it not running the build.xtarget file in the ./tools/antipede directory?
See my prior email below. The location of tools.jar is wrong. I know it is
because I just tried to cd to this directory and find it this is what I
got:
C:\Java\j2sdk1.4.1_01>cd %JAVA_HOME%\..\lib
C:\Java\lib>dir
Volume in drive C is Local Hard Drive
Volume Serial Number is D0E6-3F1B
Directory of C:\Java\lib
11/13/2002 11:16a <DIR> .
11/13/2002 11:16a <DIR> ..
07/22/2002 01:34p <DIR> jakarta-poi-1.5.1-final-bin
09/20/2002 10:24a <DIR> jakarta-poi-1.8.0-dev-bin
11/13/2002 04:23p <DIR> jakarta-poi-1.8.0-dev-src
10/23/2002 04:01p <DIR> JNDI
07/23/2002 09:26a <DIR> jtopen_3_0
0 File(s) 0 bytes
7 Dir(s) 32,691,098,624 bytes free
The lib directory is one I created for jar files I use in my development.
There is no tools.jar file here, yet the build still finds it! Maybe I'm
missing something but what?
Cliff
[EMAIL PROTECTED]
11/13/2002 03:42 PM
Please respond to "POI Users List" <[EMAIL PROTECTED]>
To: "POI Users List" <[EMAIL PROTECTED]>
cc:
Subject: RE: POI build not working
Ok, You're all probably tired of me by now but I have another question
regarding the build. I got it working on my Win2K box and tried to port it
to my iSeries AS/400. What I've found (and I saw this on Win2K and couldn't
figure out why it works there) is that it seems like the location of the
tools.jar looks like it is improperly defined. I look in the
./tools/antipedebuild.xtarget file and see the following:
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
<available file="${tools.jar}" property="tools.jar.present"/>
<fail unless="tools.jar.present" message="tools.jar not found. Probably
you are using the JRE and the JDK is not installed. Please download the JDK
from the Java Sun website www.javasoft.com ."/>
Why are we moving up a directory relative to java.home to find
/lib/tools.jar? This causes the build to fail and echo the failure message
from the fail tag because this is not where tools.jar resides. The funny
thing is this works perfectly on Win2K. Why? My Java_Home on the iSeries is
/QIBM/ProdData/Java400/jdk12. There are no spaces in the path. I know this
is the problem because when I change it to not move up a directory (I
remove the ../) I get passed this fail message.
Now I have another error that comes up when I fix the tools.jar path. I'll
just copy this to the bottom of this email. The same build package,
jakarta-poi-1.8.0-dev-src, runs without issue on Win2K but has various
bugs on the iSeries. Hmmm... does this mean the iSeries is less forgiving
than Win2K? Could this be a reason why Windows is so unstable? (That was a
joke, and honestly I have never seen the BSOD on my Win2K box. I don't
advocate Windows though.) Please someone help me with this.
Cliff
POI build error text below:
/Java/POI/jakarta-poi-1.8.0-dev-src/build/contrib/java/org/apache/poi/hssf/contrib/view/SVTableCellEditor.java:76:
Superclass org
.apache.poi.hssf.contrib.view.AbstractCellEditor of class
org.apache.poi.hssf.contrib.view.SVTableCellEditor not found.
public class SVTableCellEditor extends AbstractCellEditor implements
TableCellEditor, ActionListener {
^
/Java/POI/jakarta-poi-1.8.0-dev-src/build/contrib/java/org/apache/poi/hssf/contrib/view/SViewerPanel.java:113:
class org.apache.p
oi.hssf.contrib.view.SVTableCellEditor is an abstract class. It can't be
instantiated.
cellEditor = new SVTableCellEditor(this.wb);
/Java/POI/jakarta-poi-1.8.0-dev-src/build/contrib/java/org/apache/poi/hssf/contrib/view/SViewerPanel.java:159:
Wrong number of ar
guments in method.
sheetView.setRowHeight(i, (int)sheet.getDefaultRowHeightInPoints()
+extraHeight);
^
/Java/POI/jakarta-poi-1.8.0-dev-src/build/contrib/java/org/apache/poi/hssf/contrib/view/SViewerPanel.java:161:
Wrong number of ar
guments in method.
sheetView.setRowHeight(i, (int)row.getHeightInPoints()
+extraHeight);
^
4 errors
BUILD FAILED
/Java/POI/jakarta-poi-1.8.0-dev-src/tools/cents/centipede.cent/xbuild.xml:138:
Compile failed; see the compiler error output for
details.
Total time: 5 minutes 51 seconds
Root:/Java/POI/jakarta-poi-1.8.0-dev-src>
[EMAIL PROTECTED]
11/13/2002 10:47 AM
Please respond to "POI Users List" <[EMAIL PROTECTED]>
To: "POI Users List" <[EMAIL PROTECTED]>
cc:
Subject: RE: POI build not working
Thank you everyone. I'm not sure if it was my downloading the zip again or
changing to a directory structure with no spaces. Anyhow, it seems to be
working now. Thanks a heap everyone!
Cliff
"Dennis Doubleday" <[EMAIL PROTECTED]>
11/13/2002 10:39 AM
Please respond to "POI Users List" <[EMAIL PROTECTED]>
To: "'POI Users List'" <[EMAIL PROTECTED]>
cc:
Subject: RE: POI build not working
I don't think you want the ant jar in your classpath. In fact, I build
on Windows with no CLASSPATH at all, and didn't have any trouble. The
build script sets up the necessary paths.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:Clifton.Craig@;rrd.com]
> Sent: Wednesday, November 13, 2002 10:24 AM
> To: POI Users List
> Subject: Re: POI build not working
>
>
>
> 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%
> \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-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:poi-user-help@;jakarta.apache.org>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:poi-user-> [EMAIL PROTECTED]>
> 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>
--
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>