I don't know if it helps anyone but I've just found a solution to a
problem that has popped up from time to time on my machine when building
FOP. Sometimes, after building FOP, the only thing I would get after
invoking the FOP command-line was:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/fop/apps/Fop

If you experience this comment out the following lines in build.xml,
delete build/fop.jar and rerun the FOP build:

        <attribute name="Main-Class" value="${main.class}"/>
        <attribute name="Class-Path" value="${manifest-classpath}"/>

(found in the "package" target)

I've no idea what the real problem is but at least I've got a
work-around. I thought I should share this.

Jeremias Maerki

Reply via email to