Hi @Uriya Stavi ,
The JAVA_HOME environment variable must be set to the install location of the correct version of the JDK. Also to make sure the environment variables get refreshed, please close all the VS code windows and restart.
Similar issue : https://github.com/microsoft/vscode-azurefunctions/issues/3025
Feel free to reach out to me if you have any questions or concerns.