Results 1 to 9 of 9
Thread: access files in jar
- 07-30-2011, 09:53 PM #1
- 07-30-2011, 10:24 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 339
- Rep Power
- 5
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-30-2011, 11:00 PM #3
how do i tell it which jar to use the input stream on?
- 07-30-2011, 11:03 PM #4
Strange question. You use input streams on the file you want to read from.how 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-30-2011, 11:19 PM #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-30-2011, 11:24 PM #6
You could use JFileChooser to choose the location and the jar.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-30-2011, 11:27 PM #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-30-2011, 11:37 PM #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-30-2011, 11:42 PM #9
Similar Threads
-
Access class files outside of a .jar
By unaligned in forum Advanced JavaReplies: 8Last Post: 06-06-2011, 08:27 PM -
how to access and print the dwg files in java
By vmag in forum Advanced JavaReplies: 0Last Post: 03-19-2010, 06:29 PM -
Access remote machine files
By blueprats in forum New To JavaReplies: 16Last Post: 02-21-2010, 03:13 PM -
Random Access Files concept
By AralX in forum New To JavaReplies: 2Last Post: 12-25-2007, 07:04 PM -
access to dll files
By Heather in forum Advanced JavaReplies: 1Last Post: 07-08-2007, 12:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks