Reputation: 13
When im importing the opencv library into intellij I get a compile error saying:
I have tried setting the SDK and project language level to 1.8 but it still shows the same error message.
What can I do to solve this issue?
Upvotes: 0
Views: 950
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