xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <ganesh.ra...@wipro.com>
Subject RE: Compiling Batik Example
Date Wed, 03 Sep 2003 12:04:29 GMT

I am using batik1.5beta4. In this version, it is enough if you put
batik.jar in the classpath. The batik.jar file internally has references
(META-INF file) to other jar file required(in the lib directory). This
makes our life easier.
The \batik-1.5\batik.jar file does not have any classes in it of its
own.

Ganesh

-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
Sent: Wednesday, September 03, 2003 5:22 PM
To: Batik Users
Subject: Re: Compiling Batik Example


Shan Kajendran wrote:
> 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!!.

Uhh, I'm not a .bat file expert but doesn't this just set CLASSPATH to
point at xml-apis.jar?  I think you want to do something
like:

set CLASSPATH=d:\BatikTest\batik-1.5\lib\batik-awt-util.jar
set CLASSPATH=%CLASSPATH%;d:\BatikTest\batik-1.5\lib\batik-bridge.jar

Good luck, and do look at ANT or something.

> --------------------------------------------------------------
> 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:Thomas.DeWeese@Kodak.com]
> 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: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message