Results 1 to 9 of 9
Thread: access files in jar
- 07-30-2011, 10:53 PM #1
- 07-30-2011, 11:24 PM #2Senior Member
- Join Date
- Jun 2008
- Rep Power
If you mean you want to write a program that can put class files into a jar, check out the java.util.jar package. Alternatively, you could use Runtime.exec(..) to execute the Java jar tool (jar.exe).
If that's not what you mean, please explain in more detail.
- 07-31-2011, 12:00 AM #3
how do i tell it which jar to use the input stream on?
- 07-31-2011, 12:03 AM #4how do i tell it which jar to use the input stream on
What is the "it" in that question?
Your original question didn't say how many jar files were involved in your project.
Can you explain what you are trying to do?
- 07-31-2011, 12:19 AM #5
sorry you're right that i was un-clear. there is only one jar file that needs the patching i have a set of class files that are downloaded from a repo on the internet and then moved into the jar file. im using the fileinputstream on the class files that was downloaded a jaroutputstream (i think) on the jar that needs the files moved into. im wondering how do i choose the location of the jar and in the jar for where i want to move the file to?
- 07-31-2011, 12:24 AM #6im wondering how do i choose the location of the jar and in the jar for where i want to move the file to
- 07-31-2011, 12:27 AM #7
one more thing when i choose the location of the jar and where in the jar i want to move the file can i use mkdir, createnewfile, and exists methods on those paths or is there special jar methods that provide the same function
- 07-31-2011, 12:37 AM #8
also the jar that needs patching is in a set location. i just want the user to push one button and all files are downloaded and moved to the jar.
- 07-31-2011, 12:42 AM #9
- By unaligned in forum Advanced JavaReplies: 8Last Post: 06-06-2011, 09:27 PM
- By vmag in forum Advanced JavaReplies: 0Last Post: 03-19-2010, 07:29 PM
- By blueprats in forum New To JavaReplies: 16Last Post: 02-21-2010, 04:13 PM
- By AralX in forum New To JavaReplies: 2Last Post: 12-25-2007, 08:04 PM
- By Heather in forum Advanced JavaReplies: 1Last Post: 07-08-2007, 01:30 AM