in my program i am creating jar file through
java code, when my input is a folder , it contains two files, the files r not recognised,
vat i have written is
JarEntry jarAdd = new JarEntry(tobeJared[i].getName());
System.out.println("The JarAdded file name is"+jarAdd);
System.out.println("The statement reaches here");
jarAdd.setTime(tobeJared[i].lastModified());
out.putNextEntry(jarAdd);
here tobeJared[i] is my input, it contain the folder,with 2 files i want the whole folder to be copied.the files r not copied
JarEntry jarAdd = new JarEntry(tobeJared[i].getName());
here i use getName() method , anything wronh here, plx hepl me
kalai