Where are Java preferences stored on Mac OS X?

avernet picture avernet · Mar 24, 2009 · Viewed 53.1k times · Source

On Windows, the Java preferences, which you access in your application from java.util.prefs.Preferences are stored in the registry. Where are those stored on Mac OS X?

Answer

Todd Gamblin picture Todd Gamblin · Mar 24, 2009

From Apple Developer Connection:

The preferences files generated by the Preferences API are named com.apple.java.util.prefs. The user’s preferences file is stored in their home directory (~/Library/Preferences/). The system preferences are stored in /Library/Preferences/ and are only persisted to disk if the user is an administrator.