简体   繁体   中英

Unable to run my JavaFX project on Mac with JavaFX and JDK-15 Intellij. Error java.nio.file.AccessDeniedException

Hi I've been trying to set up JavaFX on my mac and I followed the tutorial layed out on their website. However, after following through everything, it keeps giving me an error and fails to compile with a message saying access denied in my other accounts Music folder for some reason. I would greatly appreciate any help!

我的 VM 选项配置的屏幕截图

它不断给我的错误

This happens because you're logged into MacOS as "Guest" user. Since your module-info.java is under the Advait user's directory, the "Guest" user would not have access to read this file.

There are two options to fix this.

  1. Log in as the Advait user
  2. Change permissions on the project directory to allow other users to read/write (not recommended)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM