Dear all, I am having xml-batik and all the necessary steps taken regarding setting environment variable. I am working on Windows NT .
When I tried to run .\build svgbroswer , compilation is done and also I am getting SVG browser , but when I tried to open a svg file in the browser I am getting the Exception NoSuchMethodException : org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java And when I tried to run SaveAsJPEG I am getting the below error C:> java SaveAsJPEG anne.svg Java.io.IOException:Can’t find bundle for base name org.apache.batik.dom.svg.resources.dtduris, locale en_US At org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java) And below is the code for SaveAsJPEG.java import java.io.*; import org.apache.batik.transcoder.image.JPEGTranscoder; import org.apache.batik.transcoder.TranscoderInput; import org.apache.batik.transcoder.TranscoderOutput; public class SaveAsJPEG { public static void main(String [] args) throws Exception { // create a JPEG transcoder JPEGTranscoder t = new JPEGTranscoder(); // set the transcoding hints t.addTranscodingHint(JPEGTranscoder.KEY_XML_PARSER_CLASSNAME, "org.apache.crimson.parser.XMLReaderImpl"); t.addTranscodingHint(JPEGTranscoder.KEY_QUALITY, new Float(.8)); // create the transcoder input String svgURI = new File(args[0]).toURL().toString(); TranscoderInput input = new TranscoderInput(svgURI); // create the transcoder output OutputStream ostream = new FileOutputStream("out.jpg"); TranscoderOutput output = new TranscoderOutput(ostream); // save the image t.transcode(input, output); // flush and close the stream then exit ostream.flush(); ostream.close(); System.exit(0); } } Please help me in this regard Thanking u Sudhir H S _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]