[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    Javascript and Batik Applet
From:       Mark A Fortner <phidias51 () yahoo ! com>
Date:       2010-04-06 20:25:45
Message-ID: 401520.24087.qm () web83808 ! mail ! sp1 ! yahoo ! com
[Download RAW message or body]

It looks like you're missing the rhino jar that contains javascript 
support. These links might be useful.

http://www.mozilla.org/rhino/

http://xmlgraphics.apache.org/batik/using/scripting/ecmascript.html

Hope this helps,

Mark Fortner

blog: http://feeds.feedburner.com/jroller/ideafactory

On Tue, Apr 6, 2010 at 12:50 PM, Robert Gaschen
<rgaschen@parkergaschen.com>
wrote:

> For too many bureaucratic, security and policy reasons I have been 
tasked
> to create an javascript based SVG viewer for IE.  I've been able to get the
> applet demo from the 1.7 distribution to display one of our more 
complex
> images, but all onclick events trigger the following error:
>
> java.lang.NoClassDefFoundError: org/mozilla/javascript/WrappedException
>        at
> org.apache.batik.script.rhino.RhinoInterpreterFactory.createInterpreter(Unknown
> Source)
>        at org.apache.batik.script.InterpreterPool.createInterpreter(Unknown
> Source)
>        at org.apache.batik.bridge.BridgeContext.getInterpreter(Unknown
> Source)
>        at
> org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(Unknown
> Source)
>        at
> org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(UnknownSource)
>        at
> org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source)
>        at
> org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source)
>        at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown
> Source)
>        . . .
>
> The onclick events just need to pass a single value to the applet :
>
> <rect onclick="report('i12653');" . . . .
>
> I've spent a fair amount of time researching and trying different
> solutions, but nothing has worked so far.
>
> My class path includes
> batik-dom.jar, batik-swing.jar, batik-util.jar, batik-awt-util.jar,
> batik-bridge.jar, batik-css.jar, batik-ext.jar, batik-gvt.jar,
> batik-parser.jar, batik-script.jar, batik-svg-dom.jar, 
batik-xml.jar,
> xml-apis-dom3.jar and js.jar
>

[Attachment #3 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>It looks like you're missing the rhino jar that \
contains javascript  support. These links might be useful.<br><br><a \
href="http://www.mozilla.org/rhino/" \
target="_blank">http://www.mozilla.org/rhino/</a><br><br><a \
href="http://xmlgraphics.apache.org/batik/using/scripting/ecmascript.html" \
target="_blank">http://xmlgraphics.apache.org/<wbr>batik/using/scripting/<wbr>ecmascript.html</a><br>
 <br>Hope this helps,<br><br clear="all">Mark Fortner<br><br>blog: <a \
href="http://feeds.feedburner.com/jroller/ideafactory" \
target="_blank">http://feeds.feedburner.com/<wbr>jroller/ideafactory</a><br><br>On \
Tue, Apr 6, 2010 at 12:50 PM, Robert Gaschen<br> &lt;<a \
href="mailto:rgaschen@parkergaschen.com">rgaschen@parkergaschen.com</a>&gt;<div \
class="im"><wbr>wrote:<br> <br>
&gt; For too many bureaucratic, security and policy reasons I have been 
tasked<br>
&gt; to create an javascript based SVG viewer for IE. &nbsp;I've been able to
 get the<br>
&gt; applet demo from the 1.7 distribution to display one of our more 
complex<br>
&gt; images, but all onclick events trigger the following error:<br>
&gt;<br>
&gt; java.lang.<wbr>NoClassDefFoundError: \
org/mozilla/javascript/<wbr>WrappedException<br> &gt; &nbsp; &nbsp; &nbsp; \
&nbsp;at<br> &gt; org.apache.batik.script.rhino.<wbr>RhinoInterpreterFactory.<wbr>createInterpreter(Unknown<br>
 &gt; Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;at \
org.apache.batik.script.<wbr>InterpreterPool.<wbr>createInterpreter(Unknown<br> &gt; \
Source)<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp;at \
org.apache.batik.bridge.<wbr>BridgeContext.getInterpreter(<wbr>Unknown<br> &gt; \
Source)<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt; org.apache.batik.bridge.<wbr>BaseScriptingEnvironment.<wbr>getInterpreter(Unknown<br>
 &gt; Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt; org.apache.batik.bridge.<wbr>BaseScriptingEnvironment.<wbr>loadScripts(UnknownSource)<br>
 &gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt; org.apache.batik.bridge.<wbr>UpdateManager.<wbr>dispatchSVGLoadEvent(Unknown
 Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
&gt; org.apache.batik.bridge.<wbr>UpdateManager.<wbr>dispatchSVGLoadEvent(Unknown
 Source)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;at \
org.apache.batik.swing.svg.<wbr>SVGLoadEventDispatcher.run(<wbr>Unknown<br> &gt; \
Source)<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp;. . .<br>
&gt;<br>
&gt; The onclick events just need to pass a single value to the applet :<br>
&gt;<br>
&gt; &lt;rect onclick="report('i12653');" . . . .<br>
&gt;<br>
&gt; I've spent a fair amount of time researching and trying different<br>
&gt; solutions, but nothing has worked so far.<br>
&gt;<br>
&gt; My class path includes<br>
&gt; batik-dom.jar, batik-swing.jar, batik-util.jar, batik-awt-util.jar,<br>
&gt; batik-bridge.jar, batik-css.jar, batik-ext.jar, batik-gvt.jar,<br>
&gt; batik-parser.jar, batik-script.jar, batik-svg-dom.jar, 
batik-xml.jar,<br>
&gt; xml-apis-dom3.jar and js.jar<br>
&gt;</div><br></div>
</div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic