升级到码头9.3.1.v20150714导致不支持的major.minor版本52.0 [英] Upgrading to jetty 9.3.1.v20150714 caused Unsupported major.minor version 52.0

查看:67
本文介绍了升级到码头9.3.1.v20150714导致不支持的major.minor版本52.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该错误消息似乎没有帮助.知道出了什么问题吗?

The error message doesn't seem helpful. Any idea what is going wrong?

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jetty/server/Handler : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

推荐答案

这是Java的标准错误,表明您使用的Java虚拟机比尝试运行的类要旧. (Unsupported major.minor version数字可能因情况而异,但是显示的数字表示您需要的Java版本.)

That's a standard error from Java indicating that you are using an older JVM than the Classes you are attempting to run. (the Unsupported major.minor version numbers might be different depending on scenario, but the number you are presented indicates the version of Java you need).

我通常使用关于"Java类文件"的维基百科文章来查找类文件major.minor版本号可转换为Java JVM要求的范围.

I usually use the Wikipedia article on "Java Class File" to find out what the Class file major.minor version number translates to as far as a Java JVM requirement.

对于Jetty 9.3+,其公告电子邮件要求使用Java 8.

这篇关于升级到码头9.3.1.v20150714导致不支持的major.minor版本52.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆