![Solved] ERROR: JAVA_HOME is not set and no 'java' command could be found in your flutter PATH. in flutter Solved] ERROR: JAVA_HOME is not set and no 'java' command could be found in your flutter PATH. in flutter](https://fluttercorner.com/wp-content/uploads/2021/06/java-home-is-not-set.jpg)
Solved] ERROR: JAVA_HOME is not set and no 'java' command could be found in your flutter PATH. in flutter
![java - "echo %JAVA_HOME%" returns wrong path even though System JAVA_HOME Environment variable set - Stack Overflow java - "echo %JAVA_HOME%" returns wrong path even though System JAVA_HOME Environment variable set - Stack Overflow](https://i.stack.imgur.com/0Cwtm.jpg)
java - "echo %JAVA_HOME%" returns wrong path even though System JAVA_HOME Environment variable set - Stack Overflow
![Setting the JAVA_HOME Variable in Windows | Confluence Data Center and Server 7.18 | Atlassian Documentation Setting the JAVA_HOME Variable in Windows | Confluence Data Center and Server 7.18 | Atlassian Documentation](https://confluence.atlassian.com/doc/files/8895/790795834/1/1448337914190/JAVA_HOME.png)
Setting the JAVA_HOME Variable in Windows | Confluence Data Center and Server 7.18 | Atlassian Documentation
![java - Having issue in setting JAVA_HOME and M2_HOME in .bash_profile - Amazon Linux EC2 - Stack Overflow java - Having issue in setting JAVA_HOME and M2_HOME in .bash_profile - Amazon Linux EC2 - Stack Overflow](https://i.stack.imgur.com/EcVKE.png)