Potato
Potato

Reputation: 13

Class file has wrong version

When im importing the opencv library into intellij I get a compile error saying: Error message

I have tried setting the SDK and project language level to 1.8 but it still shows the same error message. SDK and project language settings

What can I do to solve this issue?

Upvotes: 0

Views: 950

Answers (1)

arunsrajan
arunsrajan

Reputation: 46

I think OpenCV libraries are compiled using java version 11 and not java 8. Please refer the link below for the class version corresponding java version. Or you can use jdk and jre 11 for the compilation and runtime. List of Java class file format major version numbers?

Upvotes: 2

Related Questions