// the classes' constructors can now whether an object
// is created as prototype or as real object through
// isCreatingPrototypes()
for (int i = 0; i < classes.length; i++) {
ExtendedJavaClass cls = new ExtendedJavaClass(this, classes[i], true);
// Put it in the global scope:
ScriptableObject.defineProperty(this, cls.getClassName(), cls,
ScriptableObject.PERMANENT | ScriptableObject.READONLY
| ScriptableObject.DONTENUM);
}
// Define some global functions and objects: