Installing Java Desktop Application on Windows 7 O.S
May 5, 2013 in answer
ANSWER:
The “Program Files” folder is not writeable for a standard user (and for a good reason). Do not store any userdata there.
You need to put the database files into a different folder. This is what e.g. %APPDATA% is intended to be in Windows.
You can obtain the value of the %APPDATA% environment variable using the System.getenv() method.
From within Java you can also put it into a sub-directory the user.home directory (System.getProperty("user.home")).
a_horse_with_no_name from http://stackoverflow.com/questions/16387064

New Comments