Original error spawn ENOTDIR --Java path not accessing

An unknown server-side error occurred while processing the command. Original error: Could not sign with default certificate. Original error spawn ENOTDIR.

Originally my java was not showing in terminal, but I fixed that issue and now I am getting this error. I type ‘which java’ in Terminal and get ‘usr/bin/java’, in Appium I set my JAVA_HOME to this path under the ‘Edit Configurations’

I am on macOS and this is my first time using Appium.