Thanks Mr DeWeese

I have created a batch file with the following settings and run it from
my working directory.  As a start I am setting  all the jar files
because I don't know which one I need for this example!!.
--------------------------------------------------------------
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-awt-util.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-bridge.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-css.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-dom.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-ext.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-extension.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-gui-util.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-gvt.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-parser.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-script.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-svg-dom.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-svggen.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-swing.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-transcoder.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-util.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-xml.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\js.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\pdf-transcoder.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\xerces_2_3_0.jar
set CLASSPATH=d:\BatikTest\batik-1.5\lib\xml-apis.jar
------------------------------------------------------------------

Also I am going to try with ANT.
Shan


-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: 03 September 2003 12:00
To: Batik Users
Subject: Re: Compiling Batik Example



Shan Kajendran wrote:
> Hi Genies
> 
> I've installed the batik 1.5 binary distribution on my PC running 
> Windows XP.
> 
> I've set my CLASSPATH environment variable and have confirmed that it 
> is set correctly.

Hi Shan,

   You almost certainly don't have your CLASSPATH evironment variable
set properly. Probably you need to explicitly reference all of the jar
files (not just directories).  I strongly suggest you get a tool like
ANT or eclipse to help you manage the class path properly. You could
also try getting the source distribution as you can then use it's build
scripts and build.xml as a good starting point.

   You might try posting what your CLASSPATH is.
> 
> Now I am trying to compile the following code.
> ----------------------------------------------------------------------
> --
> ------------------------
> import org.w3c.dom.DOMImplementation;
> import org.apache.batik.dom.svg.SVGDOMImplementation;
> 
> public class Class1
> {
>       public static void main(String[] args)
>       {
>       
>               DOMImplementation impl = 
> SVGDOMImplementation.getDOMImplementation();
> 
>       }
> }
> ----------------------------------------------------------------------
> --
> ------------------------
> 
> But compiler can't find any of the classes and throwing  the following

> error.
> 
> "Class1.java:2: package org.apache.batik.dom.svg does not exist"
> 
> Did anyone face the same problem in past? I am breaking my head with 
> this problem for last two days.
> 
> If anyone help me to solve this problem it would be much appreciated.
> 
> Thanks in advance
> Shan
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




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




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

Reply via email to