Internal method to set the script search path for imported scripts. Calling programs can make Java objects available as properties of the global object by creating a property hash map or assigning a global prototype. Gives the script direct access to the java methods of the object. String value of the last expression, like the JavaScript eval. This is useful only for testing.
Later routines can then call into the closure.
The closure is not thread-safe. So only a single thread may execute the closure. Gives the script direct access to the java methods of the object.