aspose file tools*
The moose likes I/O and Streams and the fly likes JAR + Saving and Uploading files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "JAR + Saving and Uploading files" Watch "JAR + Saving and Uploading files" New topic
Author

JAR + Saving and Uploading files

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Currently, my program is filled with methods such as:

How would I convert this to work for a JAR file?
Would I have to use stuff like this?

Would this work for what I am trying to do?
Thanks,
John Price aka cc11rocks


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

You can't write back into a JAR file. Reading isn't a problem. You could try creating a folder with System.getProperty("user.home") has base directory.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Thank you very much. I took your advice with the user.home. It took 5 minutes to add this feature, so thanks for saving me the time!
cc11rocks aka John Price
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAR + Saving and Uploading files