I have a program which needs to be able to dynamically load JARs at runtime – after looking around I beleive this uses URLClassLoader, but I’m not sure how to get it to work. The JAR “openup.jar” is in the same directory as the program.
Ideally I would like to be able to load this JAR without having to specify each individual class inside it.
What I successfully used:
An almost identical solution is indeed presented in How should I load Jars dynamically at runtime?