title: How to load Classes at runtime from a folder or JAR?
body: <p>I am trying to make a Java tool that will scan the structure of a Java application and provide some meaningful information.   To do this, I need to be able to scan all of the .class files from the project location (JAR/WAR or just a folder) and use reflection to read about their methods.   This is proving to be near impossible.</p>
  
  <p>I can find a lot of solutions based on URLClassloader that allow me to load specific classes from a directory/archive, but none that will allow me to load classes without having any information about the class name or package structure.</p>
  
  <p>EDIT:
  I think I phrased this poorly.  My issue is not that I can't get all of the class files, I can do that with recursion etc. and locate them properly.  My issue is obtaining a Class object for each class file.   </p>