HI 
Could Any one help me
I error i am getting is :
The output Stream i :[EMAIL PROTECTED]
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/avalon/framework/logger/Logger
        at XmlToPdf.main(XmlToPdf.java:24)

I am including 
fop.jar,
lib(in lib dir)[ant.jar,avalon-excalibur.jar,avalon-framework.jar,
avalon-framework-cvs-20020315.jar,batik.jar,
batik-libs.jar,bsf.jar,cocoon.jar,fop-0_20_1-dev.jar,
JimiProClasses.jar,
junit-3.7.jar,logkit.jar,optional.jar,resolver.jar,rhino.jar,
xalan-2.2.0-D8.jar,xalan-2.3.1.jar,xerces.jar,xerces.jar,xml-apis.jar]
All most all the jar file ,still i am getting the error could any one help.



the code is given as follows

import org.apache.fop.apps.*;
import org.xml.sax.*;
import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.sax.*;
import javax.xml.transform.stream.*;

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.*;
import org.apache.fop.*;
import  java.io.*;

class XmlToPdf{
public static void main(String a[]){
try{
        FileOutputStream out = new FileOutputStream("C:/Documents and 
Settings/ost2/Desktop/Book.pdf");
        System.out.println("The output Stream i :"+out);
        Driver driver = new Driver();
        System.out.println("the driver is :"+driver);
        driver.setRenderer(Driver.RENDER_PDF);
        //driver.setLogger(log);
        File f1 = new File("C:/Documents and Settings/ost2/Desktop/Book.xml");
        System.out.println("The file 1 is :"+f1);
        File f2 = new File("C:/Documents and Settings/ost2/Desktop/Book.xsl");
        System.out.println("The file 2 is :"+f2);
        InputHandler inputHandler = new XSLTInputHandler(f1,f2 );
        System.out.println("After the InputHandler");
        driver.setOutputStream(out);
        System.out.println("After the driver.setOutputStream(out);");
        driver.render(inputHandler.getParser(), inputHandler.getInputSource());
        System.out.println("After the driver.render");
}catch(Exception e){
        System.out.println("error"+e);
}}}





Reply via email to