# Error starting the spring boot sample after installing okta

**URL:** <https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809>\
**Category:** Questions\
**Created:** [March 14, 2022, 9:37pm UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809 "2022-03-14T21:37:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricericebaby](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@ricericebaby](https://devforum.okta.com/u/ricericebaby)\
**Post date:** [March 14, 2022, 9:37pm UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809/1 "2022-03-14T21:37:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [March 14, 2022, 10:39pm UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809/2 "2022-03-14T22:39:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ricericebaby](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@ricericebaby](https://devforum.okta.com/u/ricericebaby)\
**Post date:** [March 14, 2022, 11:39pm UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809/3 "2022-03-14T23:39:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [March 15, 2022, 12:22am UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809/4 "2022-03-15T00:22:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 6:15pm UTC](https://devforum.okta.com/t/error-starting-the-spring-boot-sample-after-installing-okta/19809/5 "2024-02-12T18:15:47Z")

</div>

Closed on February 12, 2024, 6:15pm UTC


