how to store java.util.prefs.Preferences in file?

configuration, java

Solution

If you want to continue using the Preferences API, but write to a file, you will need a new PreferencesFactory, as detailed in this SO post.

Problem

I'm using java.util.prefs.Preferences for application preferences. And I need ability to edit those preferences manually. Is it possible to store it into file instead of Windows Registry? Or I should use another mechanism instead of java.util.prefs.Preferences?

Original source

Related problems