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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Jeremias Maerki
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 | Threaded
Open this post in threaded view
|

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

Luca Furini
Jeremias Maerki wrote:

> 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.

Wow, thanks, you saved me from madness!

Yesterday I was trying to merge my modified code back with HEAD and I
spent all afternoon wondering what could be wrong! 8-(

Regards
    Luca