1 Reply Latest reply on Oct 7, 2004 11:40 AM by chiba

    running jar files?

    drewcare

      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

        • 1. Re: running jar files?
          chiba

          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.