> Just put a main in it and call it like a normal java
> app, accepting the parameter. Set the exit code to
> the return value; and you can trap it within the
> pearl.
Sure that'd do it. Just understand that in calling your one method you've got to start the JVM and load all 30-40 MBytes into memory for that single call.