commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [jelly] [BSF] Loading Scripting Engines
Date Thu, 30 Jan 2003 13:23:22 GMT
It looks like you need to add rhino.jar to your classpath. BSF is a
universal API to scripting languages, but you also need to add the scripting
langauge implementation jar to the classpath too (e.g. rhino for JavaScript,
jython, beanshell etc).

http://www.ibiblio.org/maven/rhino/jars/

James
-------
http://radio.weblogs.com/0112098/
----- Original Message -----
From: "Mark R. Diggory" <mdiggory@latte.harvard.edu>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Sent: Thursday, January 30, 2003 4:17 AM
Subject: [jelly] [BSF] Loading Scripting Engines


> I'm having problems loading the javascript ScriptingEngine in version
> 2.2 of BSF that is present in the jelly BSF Taglibrary
>
> where and what is org/mozilla/javascript/JavaScriptException
>
> unable to load language: javascript: java.lang.NoClassDefFoundError:
> org/mozilla/javascript/JavaScriptException
>          at java.lang.Class.getDeclaredConstructors0(Native Method)
>          at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
>          at java.lang.Class.getConstructor0(Class.java:1748)
>          at java.lang.Class.newInstance0(Class.java:266)
>          at java.lang.Class.newInstance(Class.java:249)
>          at com.ibm.bsf.BSFManager.loadScriptingEngine(Unknown Source)
>          at
org.apache.commons.jelly.tags.bcel.Test.myMethod2(Test.java:36)
>          at org.apache.commons.jelly.tags.bcel.Test.main(Test.java:45)
> Exception in thread "main"
>
>
> seems to occur when I do
>
> BSFEngine engine = manager.loadScriptingEngine("javascript");
>
> Am I missing something obvious concerning loading Scripting engines?
>
> -Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bsf-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
View raw message