Hi,

I can see all the necessary files set in the classpath.
But the avalon version is a little bit old one, it seems.

Try adding avalon-framework-cvs-20020806.jar which comes with FOP dist
or try downloading the latest from Internet.

Before that, try opening the avalon  .jar file in some extraction utility (like
WinZip)
and check for the org/apache/avalon/framework/logger folder and the Logger class
inside it.

Thanks
--


Manjush G. Menon
ICQ: 172-548-598

----- Original Message -----
From: nitish kumar sinha
To: [EMAIL PROTECTED]
Sent: Sunday, December 14, 2003 12:02 PM
Subject: Class path problem


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);
}}}










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to