JAVA_HOME is not set and no 'java' command could be found in your PATH

I tried to run my flutter android project from github repo with emulator, but this error comes up