Greetings!,
I'm trying to install fop.
When I try to run it I get this error:
java org.apache.fop.apps.Fop -fo bgimage.fo -pdf myfile.pdf
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Unknown
David,
I'm trying to install fop.
0.20.4 is the newest version. RC means Release Candidate.
java org.apache.fop.apps.Fop -fo bgimage.fo -pdf myfile.pdf
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
at
0.20.4 is what I am trying to install.
then compare the CLASSPATH with the actual command
line.
not sure what you mean.
This is my command line:
java org.apache.fop.apps.Fop -fo bgimage.fo -pdf myfile.pdf
David,
0.20.4 is what I am trying to install.
then compare the CLASSPATH with the actual command
line.
not sure what you mean.
Have a look in fop.bat : uses the -cp parameter to pass in the classpath. I
think you're missing logkit-1.0.jar.
This is my command line:
java
I apologize Roland,
I didn't quite catch the distinction between 0.20.4 and 0.20.4rc. I have
now installed the correct version of fop and updated the directories
appropriately.
Unfortunately I still get the same error.
Have a look in fop.bat : uses the -cp parameter to pass in the classpath.
David,
logkit-1.0.jar doesn't seem to come with the linux version
of fop.
My mistake; Open mouth, change foot.
Check each jar in the 'build' 'lib' dirs are in your CLASSPATH.
If you're happy this is correct, check the current value `echo $CLASSPATH`
when you run it.
Other suggestions:
Run
Doh!
I see the problem:
/usr/local/src/fop-0.20.4rc/avalon-framework-cvs-20020315.jar
should be:
/usr/local/src/fop-0.20.4rc/lib/avalon-framework-cvs-20020315.jar
Thank you very much for your help Roland.
Regards,
David