You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Cameron McCormack <ca...@aka.mcc.id.au> on 2004/01/09 06:19:38 UTC

Using extensions

Normally I start Batik like this:

  java -jar batik-1.5.1/batik.jar

but I've just noticed that I can't use any extensions.  I found that the
Service class doesn't find the META-INF/services/* files to load the
extensions.  After playing around I found that if I use this command
line:

  CLASSPATH=batik-1.5.1/batik.jar:batik-1.5.1/lib/batik-extension.jar:$CLASSPATH \
    java org.apache.batik.apps.svgbrowser.Main

then they do load.  Why is this?

Thanks,

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

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


Re: Using extensions

Posted by Thomas DeWeese <Th...@Kodak.com>.
Cameron McCormack wrote:

> Normally I start Batik like this:
> 
>   java -jar batik-1.5.1/batik.jar
> 
> but I've just noticed that I can't use any extensions.  

    This is intentional.  The extensions are just that extensions,
we want to ensure that users of Batik know when they have 'crossed
the line'.  In recent releases we include an 'extensions' directory
which has jar files that will include the 'extension' jar on
the class path (these jar files consist solely of an updated
manifest).  These jars must stay in the same relative directy tree
from the rest of the batik Jars.

I found that the
> Service class doesn't find the META-INF/services/* files to load the
> extensions.  After playing around I found that if I use this command
> line:
> 
>   CLASSPATH=batik-1.5.1/batik.jar:batik-1.5.1/lib/batik-extension.jar:$CLASSPATH \
>     java org.apache.batik.apps.svgbrowser.Main
> 
> then they do load.  Why is this?
> 
> Thanks,
> 
> Cameron
> 




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