Hi Nicolas,

I tried what you said. This what I did.

1. Created Batik_lib environment variable and point it to c:\apache 
group\batik\batik-1.1.1\lib

2. run the class file using following command
java -classpath batik_lib/batik-ext.jar batik_lib/batik-dom.jar 
batik_lib/batik-css.jar batik_lib/batik-svg-dom.jar batik_lib/batik-gvt.jar 
batik_lib/batik-parser.jar batik_lib/batik-script.jar batik_lib/batik-bridge.jar 
batik_lib/batik-transcoder.jar batik_lib/batik-awt-util.jar batik_lib/batik-util.jar 
batik_lib/batik-xml.jar batik_lib/crimson-parser.jar batik_lib/js.jar saveAsJPEG 
barchartnew.svg

now the error that I get is Exception in thread "main" java.lang.NoClassDefFoundError: 
batik_lib/batik-dom/j
ar

My classpath=c:\Apache Group\Batik\batik-1.1.1

Please tell me what should I do. 

Thanks,
Irfan


=============================================================
Re: Hi,
Re: 
Re: in order to run the example, make sure that your classpath includes the
Re: Batik jars :
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
Re: $BATIK_LIB/batik-gvt.jar $BATIK_LIB/batik-parser.jar
Re: $BATIK_LIB/batik-script.jar $BATIK_LIB/batik-bridge.jar
Re: $BATIK_LIB/batik-transcoder.jar $BATIK_LIB/batik-awt-util.jar
Re: $BATIK_LIB/batik-util.jar $BATIK_LIB/batik-xml.jar
Re: $BATIK_LIB/crimson-parser.jar $BATIK_LIB/js.jar saveAsJPEG barchartnew.svg
Re: 
Re: where BATIK_LIB is the folder where you have the batik jars.
Re: 
Re: If you are using CVS :
Re: java -classpath $BATIK_HOME/classes;$BATIK_HOME/resources saveAsJPEG
Re: barchartnew.svg
Re: 
Re: where BATIK_HOME is the folder used with CVS.
Re: 
Re: Nicolas
Re: 
Re: > -----Original Message-----
Re: > From: irfan ali [mailto:[EMAIL PROTECTED]]
Re: > Sent: May 29, 2002 12:30 PM
Re: > To: Batik Users
Re: > Subject: Can't run compiled class
Re: > 
Re: > 
Re: > Hi,
Re: > 
Re: > I am trying to execute SaveAsJPEG.java example provided on 
Re: > http://xml.apache.org/batik/rasterizerTutorial.html with my 
Re: > SVG file and I am getting errors like 
Re: > 
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
Re: > 
Re: > can any one help me with this. I am stuck at this point for 
Re: > so long. Below is the source code of my svg file.
Re: > 
Re: > ============================================================
Re: > barChartNew.svg
Re: > ============================================================
Re: > <?xml version="1.0" standalone="no"?>
Re: > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
Re: > "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";;>
Re: > 
Re: > <svg xmlns="http://www.w3.org/2000/svg";; 
Re: > xmlns:xlink="http://www.w3.org/1999/xlink";; 
Re: > onload="lineGraph(evt);" height="500" width="2000">
Re: > <!--scripts type="text/javascript" language="JavaScript">
Re: >                           function lineGraph(evt)
Re: >                           {
Re: >                              svgGraph = 
Re: > evt.getTarget().getOwnerDocument();
Re: >                              max = 
Re: > svgGraph.getElementById("totalBars").getAttribute("value");
Re: >                                    //alert(max);
Re: >                                    
Re: >                                    var x_new;
Re: >                                    var x_old;
Re: >                                    var y_new;
Re: >                                    var y_old;
Re: > 
Re: >                                    
Re: >                                    x_old = 
Re: > parseInt(svgGraph.getElementById("pt1").getAttribute("x")) + 2;
Re: >                                    y_old = 
Re: > parseInt(svgGraph.getElementById("pt1").getAttribute("y")) + 2;
Re: > 
Re: >                                    counter=1;             
Re: >    
Re: >                                    
Re: >                                    while(counter != max)  
Re: >           
Re: >                                    {
Re: >                                       counter++;
Re: >                                                   id_old 
Re: > = "pt"+ (counter - 1);
Re: >                                                   id_new 
Re: > = "pt"+ counter;
Re: >                                                   
Re: >                                                   x_old = 
Re: > parseInt(svgGraph.getElementById(id_old).getAttribute("x"))+2;
Re: >                                                   y_old = 
Re: > parseInt(svgGraph.getElementById(id_old).getAttribute("y"))+2;
Re: >                                                           
Re: >                                           
Re: >                                                   x_new = 
Re: > parseInt(svgGraph.getElementById(id_new).getAttribute("x"))+2;
Re: >                                                   y_new = 
Re: > parseInt(svgGraph.getElementById(id_new).getAttribute("y"))+2;
Re: >                                                           
Re: >                                   
Re: >                                                   
Re: > //alert("line: <"+x_old+","+y_old+"> to <"+x_new+", 
Re: > "+y_new+">");
Re: >                                                   
Re: >                                                   var 
Re: > drawLine = svgGraph.createElement("line");
Re: >                                                   
Re: > drawLine.setAttribute("x1", x_old);
Re: >                                                   
Re: > drawLine.setAttribute("y1", y_old);
Re: >                                                   
Re: > drawLine.setAttribute("x2", x_new);
Re: >                                                   
Re: > drawLine.setAttribute("y2", y_new);
Re: >                                                   
Re: > drawLine.setAttribute("style", "stroke:blue;stroke-width:1");
Re: >                                                   
Re: >                                                   
Re: > svgGraph.getElementById("lineGraph").appendChild(drawLine);
Re: >                                    }
Re: >                                      
Re: >                           }
Re: >             </scripts-->
Re: > <coordinates id="totalBars" value="3"/>
Re: > <text y="20" style="font-size:12; text-anchor:middle" 
Re: > x="180">Trend of Corporate Ratings for "subject company".</text>
Re: > <text x="120" y="275" style="font-size:12; text-anchor:middle;">
Re: > <tspan/>
Re: > </text>
Re: > <text y="15" x="-120" style="writing-mode:lr; font-size:12; 
Re: > text-anchor:middle;" transform="rotate(-90)">
Re: > <tspan>Corporate Rating</tspan>
Re: > </text>
Re: > <text x="50" style="writing-mode:lr; font-size:12; 
Re: > text-anchor:middle;" transform="translate(15, 180) 
Re: > rotate(-90)" y="250">
Re: > <tspan>Percent Probability of Distress</tspan>
Re: > </text>
Re: > <g style="stroke-width:2; stroke:black">
Re: > <path d="M 40 240 L 40 30 L 40 240 L 200 240 Z"/>
Re: > <path d="M 200 240 L 200 30 Z"/>
Re: > </g>
Re: > <g style="fill:none; stroke:#B0B0B0; stroke-width:1; 
Re: > stroke-dasharray:2 4">
Re: > <path d="M 42 200 L 198 200 Z"/>
Re: > <path d="M 42 160 L 198 160 Z"/>
Re: > <path d="M 42 120 L 198 120 Z"/>
Re: > <path d="M 42 80 L 198 80 Z"/>
Re: > <path d="M 42 40 L 198 40 Z"/>
Re: > </g>
Re: > <g style="text-anchor:start; font-size:9">
Re: > <text y="203" x="26">A</text>
Re: > <text y="163" x="26">B</text>
Re: > <text y="123" x="26">C</text>
Re: > <text y="83" x="26">D</text>
Re: > <text y="43" x="26">F</text>
Re: > </g>
Re: > <g style="text-anchor:start; font-size:9">
Re: > <text x="206" y="203">0</text>
Re: > <text x="206" y="163">15</text>
Re: > <text x="206" y="123">30</text>
Re: > <text x="206" y="83">45</text>
Re: > <text x="206" y="43">50-100 %</text>
Re: > </g>
Re: > <path style="stroke-width:2; stroke:black; fill:green" d="M 
Re: > 65 240 L 65 160 L 85 160 L 85 240 Z"/>
Re: > <text style="font-size:10; text-anchor:middle" x="75" y="195">0</text>
Re: > <rect id="pt1" style="stroke-width:2; stroke:black; 
Re: > fill:none" x="73" y="198" width="4" height="4"/>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-150,140) rotate(-45)" x="75" 
Re: > y="235">Ajax Ltd</text>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-147,133) rotate(-45)" x="75" 
Re: > y="247">June YTD 2001</text>
Re: > <path style="stroke-width:2; stroke:black; fill:yellow" d="M 
Re: > 110 240 L 110 120 L 130 120 L 130 240 Z"/>
Re: > <text style="font-size:10; text-anchor:middle" x="120" 
Re: > y="155.25">15</text>
Re: > <rect id="pt2" style="stroke-width:2; stroke:black; 
Re: > fill:none" x="118" y="158.25" width="4" height="4"/>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-137,172) rotate(-45)" x="120" y="235">BBK</text>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-134,165) rotate(-45)" x="120" 
Re: > y="247">Q1 2002</text>
Re: > <path style="stroke-width:2; stroke:black; fill:orange" d="M 
Re: > 155 240 L 155 80 L 175 80 L 175 240 Z"/>
Re: > <text style="font-size:10; text-anchor:middle" x="165" 
Re: > y="102.25">35</text>
Re: > <rect id="pt3" style="stroke-width:2; stroke:black; 
Re: > fill:none" x="163" y="105.25" width="4" height="4"/>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-124,204) rotate(-45)" x="165" 
Re: > y="235">Long Johns Ltd</text>
Re: > <text style="font-size:10; text-anchor:end" 
Re: > transform="translate(-121,197) rotate(-45)" x="165" 
Re: > y="247">2nd Half 2001</text>
Re: > <g id="lineGraph"/>
Re: > </svg>
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: ---------------------------------------------------------------------
Re: To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: For additional commands, e-mail: [EMAIL PROTECTED]
Re: 
Re: 

-- 
===

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]

Reply via email to