import
org.apache.bsf.*; // import BSF
support
public
class TestSimpleExecRexx {
public static
void main (String[] args) throws
java.io.IOException
{
try
{
BSFManager mgr = new
BSFManager ();
BSFEngine engine =
mgr.loadScriptingEngine("rexx");
String code = "SAY 'Rexx was
here!'";
// invoke the
Rexx script
engine.exec ("rexx",
0, 0,
code);
}
catch
(BSFException e)
{
e.printStackTrace();
}
}
}