What would be a good way to dynamically load java class files so that a program compiled into a jar can read all the class files in a directory and use them, and how can one write the files so that they have the necessary package name in relation to the jar?
Share
I believe it’s a
ClassLoaderyou’re after.I suggest you start by looking at the example below which loads class files that are not on the class path.