UnsupportedClassVersionError when running custom language plugin with Java 8
已回答
I'm the author of https://plugins.jetbrains.com/plugin/11957-diff--patch-file-support. So far, I have been using AdoptOpenJDK 8 for development, but now I get
[ERROR] [system.err] Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/intellij/lang/LanguageBraceMatching has been compiled by a more recent version
of the Java Runtime (class file version 55.0), this version of the Java Runtime
only recognizes class file versions up to 52.0
when running the GenerateParser task.
No problem with JDK 11.
Do I need to switch to Java 11 or is there some workaround? The docs say Java 8 is fine.
请先登录再写评论。
If you're compiling against 2020.3, then yes https://blog.jetbrains.com/platform/2020/09/intellij-project-migrates-to-java-11/
I've added another note to above page as well (it was mentioned only in API Changes reference).