Error as3mxml.java.path in settings does not point to a valid executable on Mac M1 #610
-
"It cannot be a directory" - the question is that exactly execution it needs? java -version: echo $PATH: Thanks for any help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, the AS3 & MXML extension for VSCode is capable of checking the system PATH environment variable to find the JDK. However, I don't believe that I've ever tested it with Java installed with Homebrew. I've always used an official .pkg installer. Previously, from Oracle. More recently, from one of the OpenJDK community versions, such as Adoptium. Regardless, if you've set
My primary machine is an Apple Silicon Mac Mini. I did not need to make any changes to detect Java when I switched to this new machine. Everything in AS3 & MXML for VSCode just worked. |
Beta Was this translation helpful? Give feedback.
Yes, the AS3 & MXML extension for VSCode is capable of checking the system PATH environment variable to find the JDK. However, I don't believe that I've ever tested it with Java installed with Homebrew. I've always used an official .pkg installer. Previously, from Oracle. More recently, from one of the OpenJDK community versions, such as Adoptium.
Regardless, if you've set
as3mxml.java.path
in VSCode's settings, it will use that value instead of the PATH value. The error message that you mentioned indicates that you've setas3mxml.java.path
in VSCode's settings, so it will ignore the PATH. What value did you use? Based on your PATH environment variable, I suspect that the correct value sh…