Studio Pro 10.24.4 Beta for Mac cant find Java 21

0
In the latest Mac (Beta) of Studio Pro 10.24.4, when I try to run locally, I get this error:   "Java Development Kit (JDK) is not set. Please check the JDK 11 directory in the Deployment tab of the Preferences dialog (Edit > Preferences)."   I have set it to my Adoptium JDK 21 (Temurin) directory, which is the version suggested by Mendix, but it keeps giving me the same error. What is wrong?   Here is the error:     Here is my JDK 21 directory setting in Preferences:    
asked
1 answers
0

When I tried it again today, everything worked just fine. I suspect that all I had to do was reboot my MacBook so some environment variable changes could take effect. I'm not sure which ones. I had updated my .zprofile to set JAVA_HOME and the PATH after I installed JDK 21 like this and restarted the console:

 

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.0.8+9

PATH=$JAVA_HOME/bin:$PATH 

 

But maybe I needed to log out of Mac OS and sign back in for the settings to be recognized by Studio Pro. If I know more about what happened, I'll post it.

 

answered