Loading a JAR dynamically from memory
问题 I want to load a JAR dynamically, straight for memory. Say, I have a buffer that contains a JAR, and I want to load all the classes inside the JAR, or at least list all of the files that exist inside the JAR. (classes, images, etc...). What do I do if the first class that I load depends on the second class, for example? Does java know how to handle this? Or I have take care of this by myself? 回答1: Since you said “at least list all of the files that exist inside the JAR”, let’s begin with that