I am trying to set my machines javac version to 11 from 18.0.2 and I'm doing the following steps
- open ~/.zshenv
- export JAVA_HOME=$(/usr/libexec/java_home -v11)
- source ~/.zshenv
When I check the version, I still get it as 18.0.2. Not sure what I am doing wrong here. Could someone please help me with this? Been stuck on this forever.