W
W
wowbate2022-02-08 13:40:50
Java
wowbate, 2022-02-08 13:40:50

How to build a finished project in maven?

There is a ready project, apparently written through eclipse. I added the project to the intellij idea, Java 11 is specified everywhere in the configs. The project contains configs for building in maven, in general, I specified all the paths and initiated the build. The assembly is successful, but when I try to run the compiled program itself, an error occurs:

6202484319210791803887.png

I can’t understand where version 1.8.0 comes from, if it is absolutely nowhere + the project does not refer to it anywhere. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-02-08
@wowbate

It is worth distinguishing a compiler from a virtual machine. Your JDK may be version 11, and JRE 8. And the JRE is out of order, it looks like a version conflict.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question