在我的代码中,有一个应该调用对象的doSomething方法的方法。首先,不知道对象的类是否有公共方法。component.getClass().getMethod("doSomething", Boolean.TYPE);} catch (final NoSuchMethodExceptionnothing as for some components the method "doSomething" simpl
我使用类加载器从jar加载类,但在试图调用默认构造函数时得到一个"NoSuchMethodException“异常,该构造函数确实存在。Class myclass = JRXlsExporter.getClass(); // this might be a a problem, the class is java