I'm new to javassist and I'm wondering how to load a class from a jar file, so that to our program we could just pass a parameter to a jar file and we could figure out the main class and start from there. If anyone could help me out, it would be greatly appreciated.
TIA
You can tell Javassist the location of your jar
file by calling ClassPool#appendClassPath().
Since Javassist does not provide a way to find
main() by reading manifest.mf, you must write
code by yourself. java.util.jar would help.