question: public static void saveAsJar ( Map < String , byte [ ] > outBytes , String fileName ) { try { JarOutputStream out = new JarOutputStream ( new java . io . FileOutputStream ( fileName ) ) ; for ( String entry : outBytes . keySet ( ) ) { String ext = entry . contains ( "." ) ? "" : ".class" ; out . putNextEntry ( new ZipEntry ( entry + ext ) ) ; out . write ( outBytes . get ( entry ) ) ; out . closeEntry ( ) ; } out . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
target:  Saves a map of bytes to a jar file