Closed spdeepak closed 4 years ago
That should be an easy one 😀
You've build/package your application with Java 11 -> indeed you are running it with Java 8, but you also need to build it with Java 8.
For example:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
./mvnw clean package
./mvnw azure-functions:run
I'm closing because I'm sure this will solve the issue, but don't hesitate to comment, and I'll reopen if necessary.
This issue is for the curl command below
curl http://localhost:7071/api/hello -d "{\"name\":\"Azure\"}"
Just a side note; my local JDK version is 11 and not 8. But the java version for the project is JDK 8.
I changed my local JDK version to 8 still I get the same issue.