You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Shlomi Fish <sh...@iglu.org.il> on 2007/06/17 23:26:06 UTC

Cannot Build the Apache fop trunk

Hi all!

I cannot build the Apache fop trunk:

{{{{{{{{{{{{{{{{{
shlomi:~/Download/unpack/graphics/fop/trunk$ ant
Buildfile: build.xml

init-avail:
     [echo] ------------------- Apache FOP svn-trunk 
[1999-2007] ----------------
     [echo] See build.properties and build-local.properties for additional 
build settings
     [echo] Apache Ant version 1.7.0 compiled on May 23 2007
     [echo] VM: 1.5.0_09-b01, Sun Microsystems Inc.
     [echo] JAVA_HOME: /usr/java/jdk1.5.0_09
     [echo] Jimi Support NOT Present
     [echo] JAI Support NOT Present
     [echo] JCE Support PRESENT
     [echo] JUnit Support PRESENT
     [echo] XMLUnit Support NOT Present - you can get it from 
http://xmlunit.sourceforge.net

init-filters-jdk14:
     [echo] Use GraphicsConfiguration adapter for JDK 1.4.

init-filters-jdk13:

init:

codegen:
     [echo] Generating the java files from xml resources

compile-java:

uptodate-jar-main:

jar-main:

compile-hyphenation:

BUILD FAILED
/home/shlomi/Download/unpack/graphics/fop/trunk/build.xml:458: Could not 
create type serHyph due to java.lang.Error: Unresolved compilation problems:
        The import org.apache.tools cannot be resolved
        The import org.apache.tools cannot be resolved
        The import org.apache.tools cannot be resolved
        Task cannot be resolved to a type
        org.apache.tools cannot be resolved to a type
        FileSet cannot be resolved to a type
        FileSet cannot be resolved to a type
        DirectoryScanner cannot be resolved to a type
        The method getProject() is undefined for the type SerializeHyphPattern
        FileSet cannot be resolved to a type


Total time: 3 seconds

}}}}}}}}}}}}}}}}}

I'm on Mandriva Linux Cooker (which will be Mandriva 2008.0) and am using:

<<<<<<<<<<
shlomi:~/Download/unpack/graphics/fop/trunk$ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)
>>>>>>>>>>

You can contact me at:

http://www.shlomifish.org/me/contact-me/

Regards,

	Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish      shlomif@iglu.org.il
Homepage:        http://www.shlomifish.org/

If it's not in my E-mail it doesn't happen. And if my E-mail is saying
one thing, and everything else says something else - E-mail will conquer.
    -- An Israeli Linuxer

Re: Cannot Build the Apache fop trunk

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Shlomi Fish wrote:
> I cannot build the Apache fop trunk:
...
> BUILD FAILED
> /home/shlomi/Download/unpack/graphics/fop/trunk/build.xml:458: Could not 
> create type serHyph due to java.lang.Error: Unresolved compilation problems:
>         The import org.apache.tools cannot be resolved

This means the task can't find the ant libraries. That's a bit of an
oddity, but not unheard of. It might have something to do how ant
resolves the access to its own libraries on Mandriva, every Linux
distro seems to come up with its own way to deal with CLASSPATH hell.

Your can try various solutions
- add the ant jars to your CLASSPATH variable.
- move/copy the ant jars to your personal jar repository, create a
   build-local.properties in your fop/trunk directory, and point the
   property optional.lib.dir to the jar repository directory
- do some similar magic in your .antrc file

J.PIetschmann