Results 1 to 2 of 2
- 11-06-2011, 06:09 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 5
- Rep Power
- 0
Modifying the contents of the Jar
Hello all,
Right, now I'm sure there are all sorts of faults with doing this, but call it curiosity.
The set-up is this; a program that requires very simple persistence (think a handful of numbers). What I'm thinking is this; rather than have a file at a user specified location (and them having to load it) is it possible to store the file inside the jar in one place, then each time the program loads to access and then modify this file? I'm guessing even if this is possible, it wouldn't be done the same as writing/reading a regular file?
Is this possible?
If so, how on earth would you go about doing it?
And if it is possible, why shouldn't you do it (as in is it just silly, problem causing etc.)?
Thanks for your time!
~Longeye~
- 11-06-2011, 06:41 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,588
- Blog Entries
- 7
- Rep Power
- 17
Re: Modifying the contents of the Jar
A .jar file basically is a .zip file and even those zip utilities have to remove the old entry, add a new zip entry and basically have to create an entirely new .zip file. If you want to do that, it can be done, otherwise it would be easier to create a separate file copy of the entry and modify the copy.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
modifying the display of a website
By adhoc334 in forum NetworkingReplies: 11Last Post: 05-09-2011, 06:17 AM -
Modifying this app.
By seaisle68 in forum Java AppletsReplies: 5Last Post: 04-07-2011, 03:12 PM -
Modifying output
By sqlsql0 in forum New To JavaReplies: 1Last Post: 02-28-2011, 11:33 AM -
One Jspinner modifying the value of the other
By cotarelo in forum AWT / SwingReplies: 1Last Post: 06-11-2010, 02:48 PM -
How to get(copy) the contents i.e the contents in the cells of an excel sheet
By johnvarg in forum AWT / SwingReplies: 1Last Post: 02-23-2010, 09:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks