根据 java-dev@lists.apple.com 列表 由 Mike Swingler 提供 偏好设置在这里解释:Mac OS 上重要的 Java 目录的技术问答 QA1170 日志应该放在 System.getProperty("user.home") + "/Library/Logs/" + "your.app.identifier" 中。缓存应该放在 System.getProperty("java.io.tmpdir") 返回的目录中,或者 System.getProperty("user.home") + "/Library/Caches/" + "your.app.identifier"。数据库文件、自动保存信息和其他代表用户数据的东西如果被删除可能会丢失,应该放在 System.getProperty("user.home") + "/Library/Application Support/" + "Your App Name" 中。如需请求新的技术说明或使用此信息更新现有的 QA1170,请在 http://bugreporter.apple.com 上提交请求。