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

330 views Asked by At

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!

Screenshot of my VM options configuration

The error that it keeps giving me

1

There are 1 answers

0
Dustin On

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)