Eek. I tried to run the rasterizer and it popped up many lines of errors:

Converting Circle-information.svg to
/home/wiki/Desktop/Circle-information.png . .. Exception in thread "main"
java.awt.AWTError: Cannot load AWT toolkit: gnu.ja
va.awt.peer.gtk.GtkToolkit
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
   at org.apache.batik.bridge.CursorManager.<clinit>(CursorManager.java:102)
   at java.lang.Class.initializeClass(libgcj.so.70)
   at org.apache.batik.bridge.BridgeContext.<init>(BridgeContext.java:1154)
   at org.apache.batik.bridge.BridgeContext.<init>(BridgeContext.java:289)
   at
org.apache.batik.transcoder.SVGAbstractTranscoder.createBridgeContext(SVGA
bstractTranscoder.java:337)
   at
org.apache.batik.transcoder.SVGAbstractTranscoder.createBridgeContext(SVGA
bstractTranscoder.java:313)
   at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTra
nscoder.java:194)
   at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscode
r.java:92)
   at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTra
nscoder.java:142)
   at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTra
nscoder.java:156)
   at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:
1001)
   at
org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:71
7)
   at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
   at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
Caused by: java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.70)
   at java.lang.Class.forName(libgcj.so.70)
   at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
   ...14 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
   at java.lang.ClassLoader.getSystemClassLoader(libgcj.so.70)

Now I'm even more stumped :(

Re. the MediaWiki setting - I have changed the $wgSVGConverter path to
'batik' as described in the mediawiki manual. Given that the rasterizer
doesn't seem to be working, I won't change that any further right now.

Thanks for the suggestions so far :)

2008/11/14 Helder Magalhães <[EMAIL PROTECTED]>

> > I'm assuming that this means that mediawiki is correctly configured to
> use
> > batik, and I'm reasonably sure I have the correct JRE installed, but
> beyond
> > this I am pretty stumped.
>
> I'd suggest trying to run the rasterizer [1] stand-alone to make sure
> this is true.
>
>
>
> > any instructions on how to properly set up batik for mediawiki would also
> be
> > greatly appreciated, or just any suggestions
>
> I haven't found any also, at least not in a quick search. Only small
> bit about having the converter withing the system path and configuring
> an appropriate variable [2]:
>
> «If the converter program is not in the system path, you have to
> specify the directory that contains the program using
> $wgSVGConverterPath.»
>
> If no one suggests a better tutorial, I'd suggest adding your current
> procedure to either the mediawiki wiki [3] or the Batik wiki [4]
> (possibly into a new subsection within the "How To" page).
>
>
> Hope this helps,
>
>  Helder Magalhães
>
>
>
> [1] http://xmlgraphics.apache.org/batik/tools/rasterizer.html
> [2] http://www.mediawiki.org/wiki/Manual:Image_Administration#SVG
> [3] http://www.mediawiki.org/wiki/
> [4] http://wiki.apache.org/xmlgraphics-batik/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to