Languages

Spring Boot 2 - Exception in thread "main" java.lang.UnsupportedClassVersionError: gallery/GalleryApplication has been compiled by a more recent version of the Java Runtime (class file version 55.0).

5 points
Asked by:
Burhan-Boyce
458

I have got issue with my Spring Boot 2 application. When I run my application using IntelliJ IDEA everything works fine. When I try to run it from command line application throws error. Anyone knows what is the reasone?

Exception:

1 answer
6 points
Answered by:
Root-ssh
178180

It looks like, you try to run Java 11 application using Java 8.

To check Java version, execute in the command line:

 

Solutions:

1. Use full path to java command:

2. Install/switch to Java 11 in your operating system.

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join