Thomas Zastrow | 8 Mar 20:17
Picon
Favicon

jEuclid-problem

Hi there,

for my little project, I tried to add mathml-support to my FOP. So, as 
described in fop-0.93/examples/mathml/README, I downloaded jEuclid and 
copied the Jar-file (jeuclid-2.9.4.jar) as jeuclid.jar into FOP's  
lib-directory.

Then - please be patient, I never used ant before - I downloaded ant and 
then in the mathml-directory of FOP:

../../../ant/apache-ant-1.7.0/bin/ant -buildfile build.xml

It started to do something, but then the process failed:

----------------------------------------------------------------

Buildfile: build.xml

init:
     [echo] ------------------- MathML-FOP 0.1-CVS [2002-2004] 
----------------

jeuclid-check:

prepare:
     [echo] Preparing the build directories
    [mkdir] Created dir: /home/zastrow/fop/fop-0.93/examples/mathml/build
    [mkdir] Created dir: 
/home/zastrow/fop/fop-0.93/examples/mathml/build/src
    [mkdir] Created dir: 
/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml

prepare-src:
     [copy] Copying 3 files to 
/home/zastrow/fop/fop-0.93/examples/mathml/build/src
     [copy] Copying 1 file to 
/home/zastrow/fop/fop-0.93/examples/mathml/build/classes

compile:
     [echo] Compiling the sources
    [javac] Compiling 3 source files to 
/home/zastrow/fop/fop-0.93/examples/mathml/build/classes
    [javac] This version of java does not support the classic compiler; 
upgrading to modern
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:85: 
cannot find symbol
    [javac] symbol  : constructor DOMMathBuilder(org.w3c.dom.Document)
    [javac] location: class net.sourceforge.jeuclid.DOMMathBuilder
    [javac]                                   (new 
DOMMathBuilder(doc)).getMathRootElement(),
    [javac]                                    ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:84: 
internal error; cannot instantiate 
net.sourceforge.jeuclid.MathBase.<init> at 
net.sourceforge.jeuclid.MathBase to ()
    [javac]                 MathBase base = new MathBase(
    [javac]                                 ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:93: 
warning: [deprecation] getWidth() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]                 width = base.getWidth();
    [javac]                             ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:94: 
warning: [deprecation] getHeight() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]                 height = base.getHeight();
    [javac]                              ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:120: 
warning: [deprecation] getWidth() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]           new Dimension(base.getWidth(), base.getHeight()));
    [javac]                             ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElement.java:120: 
warning: [deprecation] getHeight() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]           new Dimension(base.getWidth(), base.getHeight()));
    [javac]                                              ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElementMapping.java:86: 
cannot find symbol
    [javac] symbol  : constructor DOMMathBuilder(org.w3c.dom.Document)
    [javac] location: class net.sourceforge.jeuclid.DOMMathBuilder
    [javac]                                   (new 
DOMMathBuilder(doc)).getMathRootElement(),
    [javac]                                    ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElementMapping.java:85: 
internal error; cannot instantiate 
net.sourceforge.jeuclid.MathBase.<init> at 
net.sourceforge.jeuclid.MathBase to ()
    [javac]                 MathBase base = new MathBase(
    [javac]                                 ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElementMapping.java:94: 
warning: [deprecation] getWidth() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]                 info.width = base.getWidth();
    [javac]                                  ^
    [javac]

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElementMapping.java:95: 
warning: [deprecation] getHeight() in net.sourceforge.jeuclid.MathBase 
has been deprecated
    [javac]                 info.height = base.getHeight();
    [javac]                                   ^
    [javac] Note:

/home/zastrow/fop/fop-0.93/examples/mathml/build/src/org/apache/fop/mathml/MathMLElementMapping.java 
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors
    [javac] 6 warnings

BUILD FAILED
/home/zastrow/fop/fop-0.93/examples/mathml/build.xml:121: Compile 
failed; see the compiler error output for details.

Total time: 2 seconds

---------------------------------------------

Perhaps somebody has an idea what I have done wrong?

Thank you!

Best,

Tom

Gmane