I run the same file on the Windows, and it works great, fabulas. But same file on Linux does this
 
The system is RedHat 9.x,
 
Errors read like this:
 
Converting demo.svg to demo.jpg ... Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
        at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
        at org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Source)
        at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source)
        at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.copyData(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.TileCacheRed.genRect(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlockInPlace(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlock(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyToRasterByBlocks(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyData(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.TranslateRed.copyData(Unknown Source)
        at org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown Source)
        at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
        at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
        at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
        at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source)
        at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)
        at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
        at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
 
 
 
Here are my path statments :
 
echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/java2/j2sdk1.4.2/bin:/usr/local/java2/j2sdk:/root/bin:/web/www/blogs/eddie/xml-batik
 echo $JAVA_HOME
/usr/local/java2/j2sdk1.4.2
 echo $CLASSPATH
 
nothing in that one, but thought I would check since it is in the FAQ.
 
I'm running rasterizer from the command line to convert a file. I'm doing this from an SSH shell connection, so X11 isn't starting, but I was under the impression that it being java and OS indepenant, this wouldn't matter anyway.
 
Here is the demo.svg I am asking it to convert. Pretty basic stuff, and as I said, the windows version rips through it very nicely.
 
<svg width="500" height="500" viewBox="0 0 400 400" >
 

<g transform="translate(204.3, 127.4)">
 
<g id="burst_screen1">
<path d="M3.06151588455594e-15 -50 Q -2.46228508392911 -25, -4.8772580504032 -24.5196320100808 Q -7.2922310168773 -24.0392640201615, -19.1341716182545 -46.1939766255643 Q -11.8419406013772 -22.1547126054028, -13.88925582549 -20.7867403075636 Q -15.9365710496029 -19.4187680097244, -35.3553390593274 -35.3553390593274 Q -19.4187680097244 -15.9365710496029, -20.7867403075636 -13.8892558254901 Q -22.1547126054028 -11.8419406013772, -46.1939766255643 -19.1341716182545 Q -24.0392640201615 -7.29223101687731, -24.5196320100808 -4.87725805040322 Q -25 -2.46228508392911, -50 -6.12303176911189e-15 Q -25 2.46228508392911, -24.5196320100808 4.87725805040321 Q -24.0392640201615 7.2922310168773, -46.1939766255643 19.1341716182545 Q -22.1547126054028 11.8419406013772, -20.7867403075636 13.88925582549 Q -19.4187680097244 15.9365710496029, -35.3553390593274 35.3553390593274 Q -15.9365710496029 19.4187680097244, -13.8892558254901 20.7867403075636 Q -11.8419406013772 22.1547126054028, -19.1341716182545 46.1939766255643 Q -7.29223101687731 24.0392640201615, -4.87725805040322 24.5196320100808 Q -2.4622850839291 25, -9.18454765366783e-15 50 Q 2.46228508392912 25, 4.87725805040321 24.5196320100808 Q 7.29223101687732 24.0392640201615, 19.1341716182545 46.1939766255643 Q 11.8419406013772 22.1547126054028, 13.88925582549 20.7867403075636 Q 15.9365710496029 19.4187680097244, 35.3553390593274 35.3553390593274 Q 19.4187680097244 15.9365710496029, 20.7867403075636 13.8892558254901 Q 22.1547126054028 11.8419406013772, 46.1939766255643 19.1341716182545 Q 24.0392640201615 7.29223101687731, 24.5196320100808 4.87725805040322 Q 25 2.4622850839291, 50 1.22460635382238e-14 Q 25 -2.46228508392911, 24.5196320100808 -4.87725805040321 Q 24.0392640201615 -7.29223101687732, 46.1939766255643 -19.1341716182545 Q 22.1547126054028 -11.8419406013772, 20.7867403075636 -13.88925582549 Q 19.4187680097244 -15.9365710496029, 35.3553390593274 -35.3553390593274 Q 15.9365710496029 -19.4187680097244, 13.8892558254901 -20.7867403075636 Q 11.8419406013772 -22.1547126054028, 19.1341716182545 -46.1939766255643 Q 7.29223101687731 -24.0392640201615, 4.87725805040322 -24.5196320100808 Q 2.46228508392911 -25, 1.53075794227797e-14 -50  "   style=" fill:#6633FF; stroke:#FF6600; stroke-width:1; fill-opacity:1 " />
</g>
 
</g>
 
<g transform="translate(188.7, 152.25)">
 
<g id="burst_screen2">
<path d="M3.06151588455594e-15 -50 Q -1.45608418674958 -25, -2.90232285313075 -24.8309589435486 Q -4.34856151951193 -24.6619178870972, -11.530793537122 -48.6522435289912 Q -7.18223201761008 -23.990325641894, -8.55050358314172 -23.4923155196477 Q -9.91877514867335 -22.9943053974014, -22.4399590100231 -44.6816320161706 Q -12.5211838613498 -21.6873266187692, -13.7377244517702 -20.8871952853234 Q -14.9542650421906 -20.0870639518776, -32.139380484327 -38.3022221559489 Q -17.1851154421364 -18.2151582040713, -18.1843410393262 -17.1560409467183 Q -19.183566636516 -16.0969236893654, -40.1061596377522 -29.8579295851393 Q -20.9225930012362 -13.7610058957739, -21.650635094611 -12.5 Q -22.3786771879858 -11.238994104226, -45.9108053440137 -19.8039883019578 Q -23.5321281560279 -8.56499419773178, -23.9497378078872 -7.17008081777726 Q -24.3673474597465 -5.77516743782272, -49.2403876506104 -8.68240888334651 Q -24.8730401908639 -2.90724144552378, -24.9577039567817 -1.45362072276189 Q -25.0423677226995 8.05434103195091e-15, -49.9154079135634 2.9072414455238 Q -24.8730401908639 2.9072414455238, -24.6201938253052 4.34120444167326 Q -24.3673474597465 5.77516743782274, -47.8994756157744 14.3401616355545 Q -23.5321281560279 8.56499419773179, -22.9554026720069 9.90199415097891 Q -22.3786771879858 11.2389941042261, -43.3012701892219 25 Q -20.9225930012362 13.7610058957739, -20.0530798188761 14.9289647925696 Q -19.183566636516 16.0969236893654, -36.3686820786524 34.3120818934367 Q -17.1851154421364 18.2151582040713, -16.0696902421635 19.1511110779744 Q -14.9542650421906 20.0870639518776, -27.4754489035403 41.7743905706468 Q -12.5211838613497 21.6873266187692, -11.2199795050115 22.3408160080853 Q -9.91877514867335 22.9943053974014, -17.1010071662834 46.9846310392954 Q -7.18223201761009 23.990325641894, -5.76539676856101 24.3261217644956 Q -4.34856151951195 24.6619178870971, -5.80464570626154 49.6619178870971 Q -1.45608418674957 25, 1.76121866656692e-14 25 Q 1.45608418674959 25, 5.80464570626152 49.6619178870971 Q 4.34856151951192 24.6619178870972, 5.765396768561 24.3261217644956 Q 7.18223201761006 23.9903256418941, 17.1010071662834 46.9846310392954 Q 9.91877514867337 22.9943053974014, 11.2199795050116 22.3408160080853 Q 12.5211838613498 21.6873266187692, 27.4754489035403 41.7743905706468 Q 14.9542650421905 20.0870639518776, 16.0696902421635 19.1511110779745 Q 17.1851154421364 18.2151582040713, 36.3686820786524 34.3120818934367 Q 19.183566636516 16.0969236893654, 20.0530798188761 14.9289647925697 Q 20.9225930012362 13.761005895774, 43.3012701892219 25 Q 22.3786771879858 11.2389941042261, 22.9554026720069 9.90199415097892 Q 23.5321281560279 8.5649941977318, 47.8994756157744 14.3401616355545 Q 24.3673474597465 5.77516743782273, 24.6201938253052 4.34120444167326 Q 24.8730401908639 2.90724144552381, 49.9154079135634 2.90724144552382 Q 25.0423677226995 6.13340852559485e-15, 24.9577039567817 -1.4536207227619 Q 24.8730401908639 -2.90724144552377, 49.2403876506104 -8.6824088833465 Q 24.3673474597465 -5.77516743782272, 23.9497378078872 -7.17008081777726 Q 23.5321281560279 -8.56499419773177, 45.9108053440137 -19.8039883019578 Q 22.3786771879858 -11.238994104226, 21.650635094611 -12.5 Q 20.9225930012362 -13.7610058957739, 40.1061596377522 -29.8579295851393 Q 19.183566636516 -16.0969236893654, 18.1843410393262 -17.1560409467183 Q 17.1851154421364 -18.2151582040713, 32.139380484327 -38.3022221559489 Q 14.9542650421906 -20.0870639518776, 13.7377244517702 -20.8871952853234 Q 12.5211838613498 -21.6873266187692, 22.4399590100231 -44.6816320161706 Q 9.91877514867336 -22.9943053974014, 8.55050358314172 -23.4923155196477 Q 7.1822320176101 -23.990325641894, 11.530793537122 -48.6522435289912 Q 4.34856151951193 -24.6619178870972, 2.90232285313075 -24.8309589435486 Q 1.4560841867496 -25, 1.53075794227797e-14 -50  "   style=" fill:#33FF66; stroke:#FF6600; stroke-width:1; fill-opacity:0.65 " />
</g>
</g>
 
<g transform="translate(188.9, 196.85)">
<g id="burst_screen3">
<path d="M3.06151588455594e-15 -50 Q -14.4337567297406 -25, -21.650635094611 -12.5 Q -28.8675134594813 -3.53513404015338e-15, -43.3012701892219 25 Q -14.4337567297407 25, -4.59227382683391e-15 25 Q 14.4337567297406 25, 43.3012701892219 25 Q 28.8675134594813 7.07026808030676e-15, 21.650635094611 -12.5 Q 14.4337567297407 -25, 1.53075794227797e-14 -50  "   style=" fill:#FF3300; stroke:#FF6600; stroke-width:1; fill-opacity:0.64 " />
</g>
</g>
 
 
 
</svg>
 
thanks for any help you can give me with this. Great work you guys are doing.
 
Glenn
 
 

Reply via email to