jakarta-bsf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rony G. Flatscher" <Rony.Flatsc...@wu-wien.ac.at>
Subject Re: evaluating simple string "2 == 2"
Date Wed, 15 Oct 2008 08:42:13 GMT
Hi Raza,

Raza, Rizwan (MLCI) wrote:
> Hi folks:
>
> How can I evaluate the string "2 == 2" in a java program. Is it
> possible?
>
> I did the following but it is throwing ClassNotFound exception
>
> BSFManager manager = new org.apache.bsf.BSFManager();
>
> Object o = manager.eval("","",0,0,"2==2");
>
> return o.toString();
>   
You would need to supply at least the engine name to use, i.e. "java" as
the first argument.

HTH,

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org


Mime
View raw message