Creating a ClassLoader to load a JAR file from a byte array
问题 I'm looking to write a custom class loader that will load a JAR file from across a custom network. In the end, all I have to work with is a byte array of the JAR file. I cannot dump the byte array onto the file system and use a URLClassLoader . My first plan was to create a JarFile object from a stream or byte array, but it only supports a File object. I've already written up something that uses a JarInputStream : public class RemoteClassLoader extends ClassLoader { private final byte[]