Where are Java preferences stored on Mac OS X?

后端 未结 2 1983
暗喜
暗喜 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:44

    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.

提交回复
热议问题