Hi Genies

I have downloaded Batik Library and unzipped it in the following
directory structure "D:\batik-1.5\lib".

Now I want to compile the following example 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();

        }
}
------------------------------------------------------------------------
---------------------------

What I have done so far?

Created one folder called "D:\BatikTest" and I have put the above code
into this folder and added the jar files to this folder as shown below.

set CLASSPATH=.;
d:\BatikTest;D:\batik-1.5\lib\batik-svg-dom.jar

Then I compile it and got the following error.

------------------------------------------------------------------------
-------------------------------------
D:\BatikTest>javac Class1.java
Class1.java:2: package org.apache.batik.dom.svg does not exist
import org.apache.batik.dom.svg.SVGDOMImplementation;
                                ^
Class1.java:8: cannot resolve symbol
symbol  : variable SVGDOMImplementation
location: class Class1
                DOMImplementation impl =
SVGDOMImplementation.getDOMImplementation();
                                         ^
2 errors
------------------------------------------------------------------------
-------------------------------------

Thanks in advance
Shan



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

Reply via email to