Monday, 19 August 2013

How to find class that contains main method in a package/jar using reflection?

How to find class that contains main method in a package/jar using
reflection?

I am using dynamic class loading which requires the main class for loading
the classes. If i input the package/jar i want to get the class name that
contains main method? Is it possible with Reflection? or is there any
other API?
Thanks in Advance..

No comments:

Post a Comment