I tried it and it didn't work. Now I have all the jar files individually in my
classpath along with /classes, /resources, /sources and /lib folders. Though I think I
don't need them I am still leaving them there.
I noticed one change after I added /resources and /sources folders to my classpath my
error changed to
java.io.IOException: Whitespace required before attributes.
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown S
ource)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
Before I was getting something like this
Re: > C:\Apache Group\Tomcat
Re: > 4.0\webapps\Risk\WEB-INF\classes\Risk\javaObjects>java Sa
Re: > veAsJPEG barchartnew.svg
Re: > Exception in thread "main" java.lang.ExceptionInInitializerError
Re: > at
Re: > org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
Re: > ource)
Re: > at SaveAsJPEG.main(SaveAsJPEG.java:25)
Re: > Caused by: java.util.MissingResourceException: Can't find
Re: > bundle for base name o
Re: > rg.apache.batik.util.resources.XMLResourceDescriptor, locale en_US
Re: > at
Re: > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
Re: > .java:804)
Re: > at
Re: > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
Re: > at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
Re: > at
Re: > org.apache.batik.util.XMLResourceDescriptor.<clinit>(Unknown Source)
Re: > ... 2 more
Any help in this regard is highly appreciated.
Thanks,
Irfan
----- Original Message -----
From: "Fayyad, Elias" <[EMAIL PROTECTED]>
Date: Thu, 30 May 2002 11:30:30 -0400
To: "'Batik Users'" <[EMAIL PROTECTED]>
Subject: RE: Can't run compiled class
Re: Are you running on Windows or UNIX? Depending on which platform you're on,
Re: referencing the environment variable is different.
Re: For point #2, I think you may want to set it as follows for Windows:
Re:
Re: java -classpath
Re: "%batik_lib%/batik-ext.jar;%batik_lib%/batik-dom.jar;%batik_lib%/batik-css.j
Re: ar;%batik_lib%/batik-svg-dom.jar;%batik_lib%/batik-gvt.jar;%batik_lib%/batik
Re: -parser.jar;%batik_lib%/batik-script.jar;%batik_lib%/batik-bridge.jar;%batik
Re: _lib%/batik-transcoder.jar;%batik_lib%/batik-awt-util.jar;%batik_lib%/batik-
Re: util.jar;%batik_lib%/batik-xml.jar;%batik_lib%/crimson-parser.jar;%batik_lib
Re: %/js.jar" saveAsJPEG barchartnew.svg
Re:
Re: Elias.
Re:
Re: -----Original Message-----
Re: From: irfan ali [mailto:[EMAIL PROTECTED]]
Re: Sent: Wednesday, May 29, 2002 12:59 PM
Re: To: Batik Users
Re: Subject: RE: Can't run compiled class
Re:
Re:
Re: Hi Nicolas,
Re:
Re: I tried what you said. This what I did.
Re:
Re: 1. Created Batik_lib environment variable and point it to c:\apache
Re: group\batik\batik-1.1.1\lib
Re:
Re: 2. run the class file using following command
Re: java -classpath batik_lib/batik-ext.jar batik_lib/batik-dom.jar
Re: batik_lib/batik-css.jar batik_lib/batik-svg-dom.jar batik_lib/batik-gvt.jar
Re: batik_lib/batik-parser.jar batik_lib/batik-script.jar
Re: batik_lib/batik-bridge.jar batik_lib/batik-transcoder.jar
Re: batik_lib/batik-awt-util.jar batik_lib/batik-util.jar
Re: batik_lib/batik-xml.jar batik_lib/crimson-parser.jar batik_lib/js.jar
Re: saveAsJPEG barchartnew.svg
Re:
Re: now the error that I get is Exception in thread "main"
Re: java.lang.NoClassDefFoundError: batik_lib/batik-dom/j
Re: ar
Re:
Re: My classpath=c:\Apache Group\Batik\batik-1.1.1
Re:
Re: Please tell me what should I do.
Re:
Re: Thanks,
Re: Irfan
Re:
Re:
Re: =============================================================
Re: Re: Hi,
Re: Re:
Re: Re: in order to run the example, make sure that your classpath includes the
Re: Re: Batik jars :
Re: Re: java -classpath $BATIK_LIB/batik-ext.jar $BATIK_LIB/batik-dom.jar
Re: Re: $BATIK_LIB/batik-css.jar $BATIK_LIB/batik-svg-dom.jar
Re: Re: $BATIK_LIB/batik-gvt.jar $BATIK_LIB/batik-parser.jar
Re: Re: $BATIK_LIB/batik-script.jar $BATIK_LIB/batik-bridge.jar
Re: Re: $BATIK_LIB/batik-transcoder.jar $BATIK_LIB/batik-awt-util.jar
Re: Re: $BATIK_LIB/batik-util.jar $BATIK_LIB/batik-xml.jar
Re: Re: $BATIK_LIB/crimson-parser.jar $BATIK_LIB/js.jar saveAsJPEG
Re: barchartnew.svg
Re: Re:
Re: Re: where BATIK_LIB is the folder where you have the batik jars.
Re: Re:
Re: Re: If you are using CVS :
Re: Re: java -classpath $BATIK_HOME/classes;$BATIK_HOME/resources saveAsJPEG
Re: Re: barchartnew.svg
Re: Re:
Re: Re: where BATIK_HOME is the folder used with CVS.
Re: Re:
Re: Re: Nicolas
Re: Re:
Re: Re: > -----Original Message-----
Re: Re: > From: irfan ali [mailto:[EMAIL PROTECTED]]
Re: Re: > Sent: May 29, 2002 12:30 PM
Re: Re: > To: Batik Users
Re: Re: > Subject: Can't run compiled class
Re: Re: >
Re: Re: >
Re: Re: > Hi,
Re: Re: >
Re: Re: > I am trying to execute SaveAsJPEG.java example provided on
Re: Re: > http://xml.apache.org/batik/rasterizerTutorial.html with my
Re: Re: > SVG file and I am getting errors like
Re: Re: >
Re: Re: > C:\Apache Group\Tomcat
Re: Re: > 4.0\webapps\Risk\WEB-INF\classes\Risk\javaObjects>java Sa
Re: Re: > veAsJPEG barchartnew.svg
Re: Re: > Exception in thread "main" java.lang.ExceptionInInitializerError
Re: Re: > at
Re: Re: > org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
Re: Re: > ource)
Re: Re: > at SaveAsJPEG.main(SaveAsJPEG.java:25)
Re: Re: > Caused by: java.util.MissingResourceException: Can't find
Re: Re: > bundle for base name o
Re: Re: > rg.apache.batik.util.resources.XMLResourceDescriptor, locale en_US
Re: Re: > at
Re: Re: > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
Re: Re: > .java:804)
Re: Re: > at
Re: Re: > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
Re: Re: > at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
Re: Re: > at
Re: Re: > org.apache.batik.util.XMLResourceDescriptor.<clinit>(Unknown Source)
Re: Re: > ... 2 more
Re: Re: >
Re: Re: > can any one help me with this. I am stuck at this point for
Re: Re: > so long. Below is the source code of my svg file.
Re: Re: >
Re: Re: > ============================================================
Re: Re: > barChartNew.svg
Re: Re: > ============================================================
Re: Re: > <?xml version="1.0" standalone="no"?>
Re: Re: > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
Re: Re: > "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";>
Re: Re: >
Re: Re: > <svg xmlns="http://www.w3.org/2000/svg";
Re: Re: > xmlns:xlink="http://www.w3.org/1999/xlink";
Re: Re: > onload="lineGraph(evt);" height="500" width="2000">
Re: Re: > <!--scripts type="text/javascript" language="JavaScript">
Re: Re: > function lineGraph(evt)
Re: Re: > {
Re: Re: > svgGraph =
Re: Re: > evt.getTarget().getOwnerDocument();
Re: Re: > max =
Re: Re: > svgGraph.getElementById("totalBars").getAttribute("value");
Re: Re: > //alert(max);
Re: Re: >
Re: Re: > var x_new;
Re: Re: > var x_old;
Re: Re: > var y_new;
Re: Re: > var y_old;
Re: Re: >
Re: Re: >
Re: Re: > x_old =
Re: Re: > parseInt(svgGraph.getElementById("pt1").getAttribute("x")) + 2;
Re: Re: > y_old =
Re: Re: > parseInt(svgGraph.getElementById("pt1").getAttribute("y")) + 2;
Re: Re: >
Re: Re: > counter=1;
Re: Re: >
Re: Re: >
Re: Re: > while(counter != max)
Re: Re: >
Re: Re: > {
Re: Re: > counter++;
Re: Re: > id_old
Re: Re: > = "pt"+ (counter - 1);
Re: Re: > id_new
Re: Re: > = "pt"+ counter;
Re: Re: >
Re: Re: > x_old =
Re: Re: > parseInt(svgGraph.getElementById(id_old).getAttribute("x"))+2;
Re: Re: > y_old =
Re: Re: > parseInt(svgGraph.getElementById(id_old).getAttribute("y"))+2;
Re: Re: >
Re: Re: >
Re: Re: > x_new =
Re: Re: > parseInt(svgGraph.getElementById(id_new).getAttribute("x"))+2;
Re: Re: > y_new =
Re: Re: > parseInt(svgGraph.getElementById(id_new).getAttribute("y"))+2;
Re: Re: >
Re: Re: >
Re: Re: >
Re: Re: > //alert("line: <"+x_old+","+y_old+"> to <"+x_new+",
Re: Re: > "+y_new+">");
Re: Re: >
Re: Re: > var
Re: Re: > drawLine = svgGraph.createElement("line");
Re: Re: >
Re: Re: > drawLine.setAttribute("x1", x_old);
Re: Re: >
Re: Re: > drawLine.setAttribute("y1", y_old);
Re: Re: >
Re: Re: > drawLine.setAttribute("x2", x_new);
Re: Re: >
Re: Re: > drawLine.setAttribute("y2", y_new);
Re: Re: >
Re: Re: > drawLine.setAttribute("style", "stroke:blue;stroke-width:1");
Re: Re: >
Re: Re: >
Re: Re: > svgGraph.getElementById("lineGraph").appendChild(drawLine);
Re: Re: > }
Re: Re: >
Re: Re: > }
Re: Re: > </scripts-->
Re: Re: > <coordinates id="totalBars" value="3"/>
Re: Re: > <text y="20" style="font-size:12; text-anchor:middle"
Re: Re: > x="180">Trend of Corporate Ratings for "subject company".</text>
Re: Re: > <text x="120" y="275" style="font-size:12; text-anchor:middle;">
Re: Re: > <tspan/>
Re: Re: > </text>
Re: Re: > <text y="15" x="-120" style="writing-mode:lr; font-size:12;
Re: Re: > text-anchor:middle;" transform="rotate(-90)">
Re: Re: > <tspan>Corporate Rating</tspan>
Re: Re: > </text>
Re: Re: > <text x="50" style="writing-mode:lr; font-size:12;
Re: Re: > text-anchor:middle;" transform="translate(15, 180)
Re: Re: > rotate(-90)" y="250">
Re: Re: > <tspan>Percent Probability of Distress</tspan>
Re: Re: > </text>
Re: Re: > <g style="stroke-width:2; stroke:black">
Re: Re: > <path d="M 40 240 L 40 30 L 40 240 L 200 240 Z"/>
Re: Re: > <path d="M 200 240 L 200 30 Z"/>
Re: Re: > </g>
Re: Re: > <g style="fill:none; stroke:#B0B0B0; stroke-width:1;
Re: Re: > stroke-dasharray:2 4">
Re: Re: > <path d="M 42 200 L 198 200 Z"/>
Re: Re: > <path d="M 42 160 L 198 160 Z"/>
Re: Re: > <path d="M 42 120 L 198 120 Z"/>
Re: Re: > <path d="M 42 80 L 198 80 Z"/>
Re: Re: > <path d="M 42 40 L 198 40 Z"/>
Re: Re: > </g>
Re: Re: > <g style="text-anchor:start; font-size:9">
Re: Re: > <text y="203" x="26">A</text>
Re: Re: > <text y="163" x="26">B</text>
Re: Re: > <text y="123" x="26">C</text>
Re: Re: > <text y="83" x="26">D</text>
Re: Re: > <text y="43" x="26">F</text>
Re: Re: > </g>
Re: Re: > <g style="text-anchor:start; font-size:9">
Re: Re: > <text x="206" y="203">0</text>
Re: Re: > <text x="206" y="163">15</text>
Re: Re: > <text x="206" y="123">30</text>
Re: Re: > <text x="206" y="83">45</text>
Re: Re: > <text x="206" y="43">50-100 %</text>
Re: Re: > </g>
Re: Re: > <path style="stroke-width:2; stroke:black; fill:green" d="M
Re: Re: > 65 240 L 65 160 L 85 160 L 85 240 Z"/>
Re: Re: > <text style="font-size:10; text-anchor:middle" x="75" y="195">0</text>
Re: Re: > <rect id="pt1" style="stroke-width:2; stroke:black;
Re: Re: > fill:none" x="73" y="198" width="4" height="4"/>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-150,140) rotate(-45)" x="75"
Re: Re: > y="235">Ajax Ltd</text>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-147,133) rotate(-45)" x="75"
Re: Re: > y="247">June YTD 2001</text>
Re: Re: > <path style="stroke-width:2; stroke:black; fill:yellow" d="M
Re: Re: > 110 240 L 110 120 L 130 120 L 130 240 Z"/>
Re: Re: > <text style="font-size:10; text-anchor:middle" x="120"
Re: Re: > y="155.25">15</text>
Re: Re: > <rect id="pt2" style="stroke-width:2; stroke:black;
Re: Re: > fill:none" x="118" y="158.25" width="4" height="4"/>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-137,172) rotate(-45)" x="120" y="235">BBK</text>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-134,165) rotate(-45)" x="120"
Re: Re: > y="247">Q1 2002</text>
Re: Re: > <path style="stroke-width:2; stroke:black; fill:orange" d="M
Re: Re: > 155 240 L 155 80 L 175 80 L 175 240 Z"/>
Re: Re: > <text style="font-size:10; text-anchor:middle" x="165"
Re: Re: > y="102.25">35</text>
Re: Re: > <rect id="pt3" style="stroke-width:2; stroke:black;
Re: Re: > fill:none" x="163" y="105.25" width="4" height="4"/>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-124,204) rotate(-45)" x="165"
Re: Re: > y="235">Long Johns Ltd</text>
Re: Re: > <text style="font-size:10; text-anchor:end"
Re: Re: > transform="translate(-121,197) rotate(-45)" x="165"
Re: Re: > y="247">2nd Half 2001</text>
Re: Re: > <g id="lineGraph"/>
Re: Re: > </svg>
Re: Re: >
Re: Re: > --
Re: Re: > ===
Re: Re: >
Re: Re: > Another FREE service from Jayde Online <http://www.jayde.com>
Re: Re: > Private, Web-based email accounts at http://www.jaydemail.com
Re: Re: >
Re: Re: > Powered by Outblaze
Re: Re: >
Re: Re: > ---------------------------------------------------------------------
Re: Re: > To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: Re: > For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: >
Re: Re:
Re: Re: ---------------------------------------------------------------------
Re: Re: To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: Re: For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re:
Re: Re:
Re:
Re: --
Re: ===
Re:
Re: Another FREE service from Jayde Online <http://www.jayde.com>
Re: Private, Web-based email accounts at http://www.jaydemail.com
Re:
Re: Powered by Outblaze
Re:
Re: ---------------------------------------------------------------------
Re: To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: For additional commands, e-mail: [EMAIL PROTECTED]
Re:
Re: ---------------------------------------------------------------------
Re: To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: For additional commands, e-mail: [EMAIL PROTECTED]
Re:
Re:
</textarea>
<!-- Basic Editor Ends -->
<p><select name="signature">
<option value="0">Select Signature </option>
<option value="0">--------------------</option>
<OPTION SELECTED>Irfan Ali</OPTION>
<OPTION>Irfan Ali</OPTION>
<OPTION>Irfan Ali</OPTION>
</select>
<a href="Javascript:write_signature()"><b><font color="#000000">Click to
Sign</font></b></a>
<p><table cellpadding="1" cellspacing="0" border="0" bgcolor="#000000">
<tr><td><table cellpadding="2" cellspacing="" border="0" width="100%"
bgcolor="#ffffcc">
<tr><td colspan="2"><font color="#000000"><b>Attachments:</td></tr>
<tr><td colspan="2"><font color="#000000">Step 1 - Select a file to attach
</font></td></tr>
<tr><td colspan="2"><input type="file" name="attachment" size="25"></td></tr>
<tr><td colspan="2"><font color="#000000">Step 2 - Click on "Attach" to include the
file in the Email </font></td></tr>
<tr><td align="center" valign="middle"><input type="button" name="attach"
value="Attach " onClick="attachAttachment()">
<br><br><input type="button" name="removeattach" value="Remove "
onClick="removeAttachment()"></td>
<td><select name="attachmentlists" size=5 multiple>
<option value="heading">-- Attachment --
</select>
</td></tr></table></td></tr></table>
</center>
<p><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<td><input type="image"
src="http://images.partner2.outblaze.com/jaydemail.com/button_sendmail_default.gif"
name="send" value="Send" border="0"><input type="image"
src="http://images.partner2.outblaze.com/jaydemail.com/button_saveDraft.gif"
name="savedraft" value="Save Draft" border="0"><a
href="Javascript:getaddress('http://www.jaydemail.com/scripts/mail/addressbook.cgi?showgetaddress&login=aliirfan')"><img
src="http://images.partner2.outblaze.com/jaydemail.com/button_insertaddresses.gif"
border="0"></a><a
href="http://www.jaydemail.com/scripts/mail/Outblaze.mail?read&aliirfan"
border="0"><img
src="http://images.partner2.outblaze.com/jaydemail.com/button_checkmail.gif"
border="0"></a></td>
<td align="right"><a
href="http://www.jaydemail.com/scripts/mail/Outblaze.mail?read&aliirfan"
border="0"><img
src="http://images.partner2.outblaze.com/jaydemail.com/button_cancel.gif"
border="0"></a></td>
</tr></table>
<p><br>
</td></tr>
</table></td></tr></table></td></tr></table>
</form></td></tr>
<tr>
<td colspan="2" bgcolor="#000000" align="center">
<font face="Verdana" size="-2" color="#ECC244"><b>Jayde.com - An iEntry Network Site
2001 iEntry, Inc. - All rights reserved</b></font>
</td>
</tr>
</table>
</body>
</html>
--
===
Another FREE service from Jayde Online <http://www.jayde.com>
Private, Web-based email accounts at http://www.jaydemail.com
Powered by Outblaze
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]