Starting July Java 11 was required for Visual Studio Code. So I have installed Java 11. But Azure Function requires Java 8. I tried to configure VS to use both SDK.
Example: VSCode showing "Java 11 or more recent is required to run. Please download and install a recent JDK"
VS Code still trying to use Java 11. Is it possible to change to JDK 8??? [WARNING] Azure Functions only support JDK 8, which is lower than local JDK version 11.0.8.
JAVA_HOME env path
C:\Program Files\Zulu\zulu-11\
Settings.json for JAVA.HOME
{
"azureFunctions.deploySubpath": "target/azure-functions/functionsjava",
"azureFunctions.projectLanguage": "Java",
"azureFunctions.projectRuntime": "~2",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.preDeployTask": "package",
"java.configuration.updateBuildConfiguration": "interactive",
"azureFunctions.templateFilter": "All",
"java.home": "C:/Program Files/Zulu/zulu-11",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "C:/Program Files/Zulu/zulu-8",
"default": true
},
{
"name": "JavaSE-11",
"path": "C:/Program Files/Zulu/zulu-11",
}
]
}