Can't create a function app by vscode (Java runtime)

Uriya Stavi 1 Reputation point

i have installed all the extensions. then i tried to create a function i got the next error: "Failed to find "maven", please ensure that the maven bin directory is in your system path."

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,605 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,446 Reputation points

    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 :

    Feel free to reach out to me if you have any questions or concerns.

    0 comments No comments