Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUn

Posted 盛夏光年2017

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUn相关的知识,希望对你有一定的参考价值。

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUnit5IdeaTestRunner : Unsupported major.minor version 52.0

@Test

导致这个错误的原因是:引入的包总是JUNIT5.而jdk环境是1.7.配置

修改:在我的项目的External Libraries里面去掉maven:junit5

首先

随便选一个open

点—

然后ok

 

以上是关于Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUn的主要内容,如果未能解决你的问题,请参考以下文章

Exception in thread "main" java.lang.UnsupportedClassVersionError

Exception in thread "main" java.util.InputMismatchException

Exception in thread "main" java.lang.ClassCastException

Exception in thread "main" java.lang.UnsatisfiedLinkError:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1

Exception in thread "main" java.lang.NullPointerException