Hi,

I'm running FOP under Windows 2000 with jdk 1.2.2 which works fine ...
But apart from that:
svg classes belong to the batik project. They should be in batik.jar, which
should be included with the fop distribution in the lib subdirectory of the
fop root.

HTH, Corinna

----- Original Message -----
From: "SHU KUO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 7:26 PM
Subject: XML to PDF


--- Received from DIST.KUOS 777-2825                01-12-11 14.26

  -> [EMAIL PROTECTED]

Hi.  with ivan's help.

I am able to compile the program under Windows 2000.  JDK 1.3.1
can't recognize system variable CLASSPATH.

Now, I still get the folling not found class message which I don't
see is being defined, where it is ?

EXCEPTION IN THREAD "MAIN" JAVA.LANG.NOCLASSDEFFOUNDERROR
org/apache/batik/dom/svg/svgcontent

at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMappin
g)

is this something to do with FO file, I am using the downloaded
examples.

the following is my code:

//DOM
import org.w3c.dom.*;
import org.apache.xerces.parsers.*;

//Java
import java.io.*;
import java.io.File;
import java.lang.String;
import java.net.URL;

import org.apache.fop.apps.*;
import org.apache.fop.apps.InputHandler;
import org.apache.fop.svg.*;

import org.apache.fop.messaging.*;

import org.xml.sax.*;

import org.apache.xerces.parsers.SAXParser;

public class XMLPDF
{
  public static void main(String[] args)
  {
   try{
    File xmlf = new File("c:/jdk1.3.1/xslfoRef.xml");
    File xslf = new File("c:/jdk1.3.1/xml2pdf.xsl");
    File writefile = new File("test.pdf");
    writefile.createNewFile();
    Driver driver = new Driver();
    driver.setRenderer(Driver.RENDER_PDF);
    InputHandler inputHandler = new XSLTInputHandler(xmlf, xslf);
    XMLReader parser = inputHandler.getParser();
    InputSource inputSource = inputHandler.getInputSource();
    driver.setOutputStream(new FileOutputStream(writefile));
    driver.render(parser, inputSource);
    //writefile.close();
    } catch (Exception ex) {ex.printStackTrace(); }
  }

}


thanks for the help.

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






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

Reply via email to