Dimitar
Dimitar

Reputation: 1

class file version 54.0,Java Runtime only 52.0, while trying to run docker

Im trying to dockerize my application and when I try to run the docker run command, I receive this error. I tried a lot of things where people say that java and javac are different versions, but they are the same; What is the problem in the situation and how can I resolve it? I will apply picture of the error, so you can see it. Also do I need to go back to previous version of java and how to do this? Thanks in advance! :)

Error

Upvotes: 0

Views: 647

Answers (1)

Ghokun
Ghokun

Reputation: 3465

You have compiled your code with Java 10. Your docker has Java 8 runtime environment.

Upvotes: 0

Related Questions