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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to