src/data/jarutil/JarZip.java
public void zipIt(String zipFile){

        byte[] buffer = new byte[1024];

        try{
            zipFile.replace(BACKSLASH,FRONTSLASH);

            FileOutputStream fos = new FileOutputStream(zipFile);
            JarOutputStream jos = new JarOutputStream(fos,manifest);


            for(String file : this.fileList){

                JarEntry ze= new JarEntry(file.replace(BACKSLASH,FRONTSLASH));
                jos.putNextEntry(ze);
                FileInputStream in = new FileInputStream(sourceFolder + FRONTSLASH + file);
                int len;
                while ((len = in.read(buffer)) > 0) {
                    jos.write(buffer, 0, len);
                }
                in.close();
            }

            for(String file : this.addList){

                JarEntry ze= new JarEntry(file.replace(BACKSLASH,FRONTSLASH));
                jos.putNextEntry(ze);
                System.out.println(projectFolder +FRONTSLASH + file);
                FileInputStream in = new FileInputStream(projectFolder + FRONTSLASH + file);
                int len;
                while ((len = in.read(buffer)) > 0) {
                    jos.write(buffer, 0, len);
                }
                in.close();
            }

            jos.closeEntry();
            //remember close it
            jos.close();

        }catch(IOException ex){
            DataUtils.ErrorStatement(FAILED);

        }
    }
/**
     * Zip it
     * @param zipFile output ZIP file location
     */
Zip it
@param zipFile output ZIP file location
Zip it @param zipFile output ZIP file location
public void zipIt(String zipFile){
        byte[] buffer = new byte[1024];
        try{
            zipFile.replace(BACKSLASH,FRONTSLASH);
            FileOutputStream fos = new FileOutputStream(zipFile);
            JarOutputStream jos = new JarOutputStream(fos,manifest);
            for(String file : this.fileList){
                JarEntry ze= new JarEntry(file.replace(BACKSLASH,FRONTSLASH));
                jos.putNextEntry(ze);
                FileInputStream in = new FileInputStream(sourceFolder + FRONTSLASH + file);
                int len;
                while ((len = in.read(buffer)) > 0) {
                    jos.write(buffer, 0, len);
                }
                in.close();
            }
            for(String file : this.addList){
                JarEntry ze= new JarEntry(file.replace(BACKSLASH,FRONTSLASH));
                jos.putNextEntry(ze);
                System.out.println(projectFolder +FRONTSLASH + file);
                FileInputStream in = new FileInputStream(projectFolder + FRONTSLASH + file);
                int len;
                while ((len = in.read(buffer)) > 0) {
                    jos.write(buffer, 0, len);
                }
                in.close();
            }
            jos.closeEntry();
            jos.close();
        }catch(IOException ex){
            DataUtils.ErrorStatement(FAILED);
        }
    }
public void zipIt ( String zipFile ) { byte [ ] buffer = new byte [ 1024 ] ; try { zipFile . replace ( BACKSLASH , FRONTSLASH ) ; FileOutputStream fos = new FileOutputStream ( zipFile ) ; JarOutputStream jos = new JarOutputStream ( fos , manifest ) ; for ( String file : this . fileList ) { JarEntry ze = new JarEntry ( file . replace ( BACKSLASH , FRONTSLASH ) ) ; jos . putNextEntry ( ze ) ; FileInputStream in = new FileInputStream ( sourceFolder + FRONTSLASH + file ) ; int len ; while ( ( len = in . read ( buffer ) ) > 0 ) { jos . write ( buffer , 0 , len ) ; } in . close ( ) ; } for ( String file : this . addList ) { JarEntry ze = new JarEntry ( file . replace ( BACKSLASH , FRONTSLASH ) ) ; jos . putNextEntry ( ze ) ; System . out . println ( projectFolder + FRONTSLASH + file ) ; FileInputStream in = new FileInputStream ( projectFolder + FRONTSLASH + file ) ; int len ; while ( ( len = in . read ( buffer ) ) > 0 ) { jos . write ( buffer , 0 , len ) ; } in . close ( ) ; } jos . closeEntry ( ) ; jos . close ( ) ; } catch ( IOException ex ) { DataUtils . ErrorStatement ( FAILED ) ; } }
Zip it
 @param zipFile output ZIP file location
Zip it @param zipFile output ZIP file location
//remember close it