Make sure that JAVA_HOME is set to the location of your JDK , e.g. export JAVA_HOME=/usr/java/jdk1. 5.0_02 and that $JAVA_HOME/bin is in your PATH environment variable. Run mvn –version to verify that it is correctly installed.
Read moreHow do you run a flutter command on a Mac?
If you are using zsh, you need to follow the below steps in mac.
Read moreHow do I fix mvn command not found?
setx MAVEN_HOME “C:\Program Files\apache-maven-3.6. 1” setx PATH “%PATH%;%MAVEN_HOME%\bin”; You can check if these are set appropriately by running the commands: java -version and mvn –version on the command prompt.
Read moreHow do I use flutter doctor on Mac?
Install Android Studio
Read moreHow do I install Z shell?
Installing ZSH on Ubuntu
Read moreWhere is Zshrc in Mac?
zshrc file on a Mac? The . zshrc file will be located in the users home directory, or ~/ , and this user . zshrc file is where you’d place customizations to the z shell.
Read moreHow do I know if zsh is working?
Update your Terminal preferences to open the shell with the command /bin/bash , as shown in the screenshot above. Quit and restart Terminal. You should see “hello from bash”, but if you run echo $SHELL , you will see /bin/zsh .
Read more