Where are Java preferences stored on Mac OS X?

后端 未结 2 1984
暗喜
暗喜 2021-02-02 06:36

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?

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 06:42

    Also, note that if the preference is nested enough, it won't directly be in com.apple.java.util.prefs, but rather in its own file. For instance, if you have a node /a/b/c, the key/value pairs for that node will be stored in a.b.c.plist.

    The file will be either in ~/Library/Preferences/ or /Library/Preferences/, as for the com.apple.java.util.prefs file.

提交回复
热议问题