英文:
How can I grant a java app packaged with jpackage full disk access on a mac?
问题
我已经创建了一个使用jpackage
打包的Java应用程序。使用AdoptOpenJDK 14编译和打包。
在Mac上安装后,它需要完全访问磁盘以复制文件到/Applications
目录。
不幸的是,我简单地无法弄清楚如何做到这一点。授予应用程序完全磁盘访问权限似乎没有任何影响。
使用jpackage
并不重要。它只是看起来最简单的完成任务的方法。只要它可以获得完全磁盘访问权限,我愿意使用其他方式来打包它。
英文:
I've created a java app that's packaged with jpackage
. Compiled and packaged with AdoptOpenJDK 14.
After installing on a mac, it needs full disk access to copy files to the /Application
directory.
Unfortunately, I simply cannot figure out how to do so. Granting full disk access to the app does not seem to make any difference.
Using jpackage
is not important. It just looked like the simplest way to get it done. I'm happy to package it using something else as long as it's possible for it to get full disk access.
专注分享java语言的经验与见解,让所有开发者获益!
评论