Java Preferences with Mac OS X

If you use the Java preferences (java.util.prefs.Preferences), you will come to the point where you need to know where they are persisted on Mac OS X.

On a UNIX system, the XML files containing the preferences are saved in a directory .java in the home directory of the current user. Using Mac OS X, you won't find this directory.

Mac OS X uses Library / Preferences to store user specific settings. But all Java preferences are stored in a single file with the name com.apple.java.util.prefs.plist. The Apple Property List format fits the needs to store all preferences of a user. You can also use the Property List Editor to view and edit the file.