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 Jeremias Maerki <de...@greenmail.ch> on 2005/05/16 16:04:29 UTC

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

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