xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucan1d <luca...@hotmail.com>
Subject RE: Batik and Rhino
Date Fri, 14 Jan 2011 12:20:00 GMT
>> 4. I understand that Rhino ships with JDK 6 as the default JavaScript
>> execution engine for javax.Script . Is it possible to use the Rhino
>> that ships with JDK instead of js.jar that ships with Batik.

> Perhaps!  I’ve never tried.  You would need to write your own
> org.apache.batik.script.Interpreter{,Factory} implementations and
> register them using the Service Provider Interface.  I guess they would
> look pretty much the same as the ones in org.apache.batik.script.rhino
> but using the JDK class names (which I can’t remember off the top of my
> head – something like javax.script.rhino).

Yes, it certainly is possible - I have done it.  I wanted to reduce the JAR size for use of
Batik in an applet and was successful at this by eliminating the need for a separate Rhino


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

View raw message