2020.3 EAP Incompatible with JDK8?
已回答
Hello,
We're testing our plugin on the 2020.3 EAP (LATEST-EAP-SNAPSHOT) and we are having some trouble building our plugin against this version with JDK8, failing with an error like
import com.intellij.openapi.projectRoots.Sdk;
bad class file: <DIRECTORY>/ideaIC-LATEST-EAP-SNAPSHOT/lib/platform-api.jar(com/intellij/openapi/projectRoots/Sdk.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
However the build completes successfully with JDK11. Will the 2020.3 release actually be compatible with Java 8?
Many Thanks
Scott Smith
请先登录再写评论。
If you compile against 2020.3 platform, you'll need to use Java 11 https://blog.jetbrains.com/platform/2020/09/intellij-project-migrates-to-java-11/
Thanks Yann - someone did mention this blog post to me but I was unable to find it!