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.
Using the java.util.prefs mecanism is easy and efficient... until you
have to have your app de-install properly in a portable way. My apps
have to run on Linux, Windows and Mac. The Unix $HOME/.apprc hack is
the only way I have found that allows me to get the user to wipe the
app completely from the HD (with file.delete()). How do you erase the
Windows registry entry, the Linux $HOME/.java/whatever and the Mac
$HOME/Library/Preferences/app without conditional code for each
platform? Maybe you can but I have found out how. If I would, I
certainly would adopt the prefs immediately!
_______________________________________________
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/lyderic.landry%
40gmail.com
This email sent to email@hidden
_______________________________________________
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