permission denied error while reading/writing file by application(.jar) in mac

后端 未结 1 458
自闭症患者
自闭症患者 2020-12-02 01:56

I have created an application in swing also created an installer for the same application.

both installer and the application run perfectly on windows system.

<
相关标签:
1条回答
  • 2020-12-02 02:22

    The problem is in Mac OS.

    No, the problem is not having permission to write to the Library directory of userxyz. Java WebStart is usually more than sufficient, but you should at least follow the approach recommended in Technical Q&A QA1170: Important Java Directories on Mac OS X. Note the distinction between user preferences, user data and application support, each of which is rooted in System.getProperty("user.home"). Note also that, java.util.Preferences uses ~/Library/Preferences/your.qualified.name by default. In addition, there's no reason to use hidden file names.

    0 讨论(0)
提交回复
热议问题