Java首选项存储在Mac OS X上的哪个位置? [英] Where are Java preferences stored on Mac OS X?

查看:570
本文介绍了Java首选项存储在Mac OS X上的哪个位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上,您在应用程序中从java.util.prefs.Preferences访问的Java首选项存储在注册表中。哪些存储在Mac OS X上?

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?

推荐答案

来自 Apple Developer Connection



首选项API生成的首选项文件名为
com.apple.java.util.prefs
用户首选项文件存储在
的主目录
〜/ Library / Preferences / )中。系统
首选项存储在
/ Library / Preferences / 中,如果用户为$ b $,则只有
持久保存到磁盘b管理员。

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.

这篇关于Java首选项存储在Mac OS X上的哪个位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆