public void putClazzesToJar(ArrayList clazzList, ArrayList clazzNameList) throws IOException {
JarOutputStream newJar = new JarOutputStream(new FileOutputStream(jf1.getName() + "encrypted.jar"));
byte[] clazzAsBytes;
Iterator it = clazzList.listIterator();
while (it.hasNext())
{
clazzAsBytes = (byte[]) it.next();
JarEntry j = new JarEntry(clazzNameList.get(clazzList.indexOf(clazzAsBytes)).toString());
newJar.putNextEntry(j);
newJar.write(clazzAsBytes, 0, clazzAsBytes.length);
newJar.closeEntry();
}
newJar.close();
}