I have to create zip file. zip file may contain only files(without any folder structure)/folders/both.....& that I will select at run time
i.e. step for creating
1. first I will select files/Folder/both by using JFileChooser
2. then I will give zip file name which i want to create
3. when i clicked on create zip button then it should create a zip file containg all file and folders
currently I have added all the file paths and folder paths which i want to zipped in a list, but it is not get zipped properly, folder structure is not created properly
Please give me the code for creating zip file containing both files and folders.
Please reply soon...