File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Direcectory structute in jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Direcectory structute in jar" Watch "Direcectory structute in jar" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Direcectory structute in jar
 
Similar Threads
How to Compare contents of Jar files?
JarInputStream
JAR File
connecting to shared folder in windows
creating jar file programatically