Java run JarInputStream
===

I have searched for hours and not found anything about this.

I have a jarinputstream who reads a crypted jar and decrypts it 

    JarInputStream jin = new JarInputStream(new CipherInputStream(in, dcipher));


I got that confirmed working because it prints out class names when I do

    while ((je = jin.getNextJarEntry()) != null) {
          jename = je.getName();

If I print out jename, it will print out the class name and path so I know it decrypts well.

But now, when I wanna run Main.class, I have NO clue about how doing this. I do not wanna save the file to disk, just keep this in memory.

Any tip about how I can create and run a jar in memory from that jarinputstream?

Thanks!