> "the method forName(String) is not defined for the type Class". That's an unusual error. You haven't defined your own Class class, have you? > What am I doing wrong? The book I am reading doesn't specify that I need to do any special imports. You shouldn't; you should simply have the class specified by the fully-qualified name in your string ...