ClassNotFoundException if the MIDlet class is
not found
exception
InstantiationException if the MIDlet cannot be
created or is not subclass of MIDlet
exception
IllegalAccessException if the MIDlet is not
permitted to perform a specific operation
Class midletClass;
midletClass = Class.forName(className);
if (!MIDlet.class.isAssignableFrom(midletClass)) {
throw new InstantiationException("Class not a MIDlet");
}
return (MIDlet)midletClass.newInstance();