title: fo file convert to pdf in java
body: <p>I am new to java and fo trying to convert a fo file to pdf I copied java from <a href="http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup" rel="nofollow">this</a> link, but I am getting the error below: </p>
  
  <blockquote>
    <p>Transforming... log4j:WARN No appenders could be found for logger
    (org.apache.fop.util.ContentHandlerFactoryRegistry). log4j:WARN Please
    initialize the log4j system properly. Exception in thread "main"
    java.lang.NoClassDefFoundError:
    org/apache/avalon/framework/configuration/ConfigurationException  at
    org.apache.fop.apps.FopFactory.(FopFactory.java:165)    at
    org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190)   at
    fop.ExampleFO2PDF.(ExampleFO2PDF.java:73)   at
    fop.ExampleFO2PDF.main(ExampleFO2PDF.java:156) Caused by:
    java.lang.ClassNotFoundException:
    org.apache.avalon.framework.configuration.ConfigurationException  at
    java.net.URLClassLoader$1.run(URLClassLoader.java:366)    at
    java.net.URLClassLoader$1.run(URLClassLoader.java:355)    at
    java.security.AccessController.doPrivileged(Native Method)    at
    java.net.URLClassLoader.findClass(URLClassLoader.java:354)    at
    java.lang.ClassLoader.loadClass(ClassLoader.java:425)     at
    sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)     at
    java.lang.ClassLoader.loadClass(ClassLoader.java:358)     ... 4 more</p>
  </blockquote>