Results 1 to 7 of 7
- 09-25-2011, 03:08 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 3
- Rep Power
- 0
-
Re: Transfer directory from ran java file to external jar
Please tell the details: exactly what are you trying to do, and perhaps more importantly, why?
- 09-25-2011, 03:23 PM #3
Re: Transfer directory from ran java file to external jar
Do you mean you want to copy the files that are in a directory in the jar file where the program is executing code to another jar file?how I can copy a directory from the jar file the user ran, to another external jar file
See the API doc for the JarFile and JarOutputStream classes for ideas.
- 09-25-2011, 03:31 PM #4
Member
- Join Date
- Sep 2011
- Posts
- 3
- Rep Power
- 0
Re: Transfer directory from ran java file to external jar
What I want to do, is inject a folder of resources(classes, pictures, etc) from a folder in the ran jar file, into another jar file.
- 09-25-2011, 03:35 PM #5
Re: Transfer directory from ran java file to external jar
Sorry, I don't understand what it means to "inject a folder"?
Do you mean to copy the contents of a folder in one jar file into another jarfile? Does the other jar file already exist or will it be created? Is the "ran" jar file where the executing code is coming from?
For reading and writing jar files see the JarFile and JarOutputStream classes and the java.util.zip package classes.Last edited by Norm; 09-25-2011 at 04:05 PM.
- 09-25-2011, 09:02 PM #6
Member
- Join Date
- Sep 2011
- Posts
- 3
- Rep Power
- 0
Re: Transfer directory from ran java file to external jar
I understand everything except one thing:
I cant make it only extract from one directory. Anyone know any way of reading from only one directory?
- 09-25-2011, 09:06 PM #7
Similar Threads
-
need any tool for file transfer in localmachine using ftp in java?
By rkraj in forum Java SoftwareReplies: 3Last Post: 02-15-2011, 12:27 AM -
how to transfer file from to another by using FTP in java
By m_chenna in forum Java SoftwareReplies: 6Last Post: 02-08-2011, 07:08 AM -
running external program in directory different from working dir
By nickvandewiele in forum New To JavaReplies: 4Last Post: 03-26-2010, 08:16 AM -
File Transfer using java.IO
By cheng in forum New To JavaReplies: 0Last Post: 12-14-2009, 04:42 AM -
Java File Transfer
By lks0912 in forum Advanced JavaReplies: 0Last Post: 10-23-2008, 12:53 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks