If you want to run JavaScript under WebStart, you need to grant special permissions to your WebStart application. I assume that you have js.jar in your classpath as I see some org.mozilla.javascript code in the stack trace.
Try something like:
<security>
<all-permissions/>
</security>
in your JNLP file.
Vincent.
Thomas E Deweese wrote:
"CS" == Cory Sanoy <[EMAIL PROTECTED]> writes:CS> I am attempting to launch squiggle with Java Web Start and when I CS> load an SVG file that contains javascript code I get the following CS> error:CS> java.lang.NoClassDefFoundError: CS> org/mozilla/javascript/NativeScript at You probably don't hav js.jar on the class path. This is where the javascript interpreter lives. CS> java.lang.ClassLoader.defineClass0(Native Method) at CS> java.lang.ClassLoader.defineClass(Unknown Source) at CS> java.security.SecureClassLoader.defineClass(Unknown Source) at CS> org.apache.batik.script.rhino.RhinoClassLoader.defineClass(Unknown CS> Source) at CS> org.apache.batik.script.rhino.BatikSecuritySupport.defineClass(Unknown CS> Source) at CS> org.mozilla.javascript.optimizer.Codegen.compile(Unknown Source) CS> at org.mozilla.javascript.Context.compile(Unknown Source) at CS> org.mozilla.javascript.Context.compile(Unknown Source) at CS> org.mozilla.javascript.Context.compileReader(Unknown Source) at CS> org.mozilla.javascript.Context.evaluateReader(Unknown Source) at CS> org.apache.batik.script.rhino.RhinoInterpreter.evaluate(Unknown CS> Source) CS> at CS> org.apache.batik.script.rhino.RhinoInterpreter.bindObject(Unknown CS> Source) CS> at CS> org.apache.batik.bridge.BaseScriptingEnvironment.initializeEnvironment(Unkno CS> wn Source) at CS> org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(Unknown CS> Source) at CS> org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown CS> Source) at CS> org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown CS> Source) CS> I am using batik 1.5 beta 4 and Java 1.4 and/or 1.3. I have read CS> some discussions items that define the issue and I understand the CS> source of the problem. However I have yet to find a solution to CS> the problem. Has anyone solved the problem and if so how? Is there CS> a quick fix? CS> Thanks, /Cory --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
