| Author |
Direcectory structute in jar
|
kalai sundar
Ranch Hand
Joined: May 25, 2005
Posts: 59
|
|
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
|
 |
 |
|
|
subject: Direcectory structute in jar
|
|
|