Error starting the spring boot sample after installing okta

After installing okta using the tutorial. The next step says to start up the spring boot sample. I get the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project okta-spring-boot-sample: Fatal error compiling: invalid target release: 11 ā†’ [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project okta-spring-boot-sample: Fatal error compiling

JDK 11+ is required. What do you see when you run java --version?

Iā€™m using Java 1.8 which is what my application needs to use that I want to integrate okta with.

You should be able to change the java.version property in your pom.xml from 11 to 8.