How does one access a method from an external jar at runtime?
问题 This is a continuation of the question posted in: How to load a jar file at runtime I am uncertain as to how to continue to the method invocation level. From my understanding, from the clazz object, I would used getMethod or getDeclaredMethod to get a Method object from which I would call invoke. Of course, invoke requires an instance. Would that then be what is called doRun in the example code? Do I need to perform the doRun.run() method call even though I want to execute a different method