It has been indicated that the Application directory is write
protected. I tend to use my own directory and application bundle
to store disk data and not use the Application directory for what I
write so it hasn't been a concern for me up to now. If I wanted to
write it elsewhere what is now considered the preferred location? I
know some java applications seem to follow a Unixy convention of
writing them to the user home directory as .invisible files but I'm
not sure I like that.
I should look more at the persistence API itself but I believe that
isn't recommended for a lot of data and I'm not sure how much I'll
need to write yet.
Don't store stuff in the application bundle - as you've found, it
won't work if the Applicaiotns folder is write-protected or it's on a
CD or mounted over the network. Put stuff in one of the "Library/
Application Support" folders instead, or, if it's not much, use the
java.util.prefs API which will put stuff in your ~Library/Preferences
folder. Personally, I hate the hidden-files-in-the -home-folder thing.
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden