JPython embed question

Randy Heiland heiland at ncsa.uiuc.edu
Thu Dec 21 20:12:40 EST 2000


In the JPython demo/embed example, we find how to create an instance of
a class, e.g.:

  interp.set("foo1", new Foo());
  interp.set("bar1", new Bar());

I'd like to be able to dynamically create an instance of a class - e.g.,

  createInstance(String instName, String className)

thanks,
--Randy




More information about the Python-list mailing list