从IntelliJ IDEA JBoss迁移到MyEclipse Tomcat后,不支持major.minor版本51.0错误 [英] Unsupported major.minor version 51.0 error after moving from IntelliJ IDEA JBoss to MyEclipse Tomcat

查看:120
本文介绍了从IntelliJ IDEA JBoss迁移到MyEclipse Tomcat后,不支持major.minor版本51.0错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从IntelliJ IDEA JBoss迁移到MyEclipse Tomcat之后,我收到了一个不支持的major.minor版本51.0错误。

I am getting a Unsupported major.minor version 51.0 error after moving from IntelliJ IDEA JBoss to MyEclipse Tomcat.

IntelliJ IDEA和JBoss下的一切都运行良好我们正在转移到MyEclipse和Tomcat 6 ..

Everything was working great under IntelliJ IDEA and JBoss and now we are moving to MyEclipse and Tomcat 6..

我得到:

Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141

有人可以告诉我如何解决这个问题

can someone please tell me how to fix this issue

推荐答案

编译时会发生这种情况JDK的更高版本中的代码比在运行时使用的更高。

This happens when you compile the code in a higher version of the JDK than you are using at runtime.

您可以在此处设置编译器版本:

You can set the compiler version here:

Project -> Properties -> Java Compiler

这篇关于从IntelliJ IDEA JBoss迁移到MyEclipse Tomcat后,不支持major.minor版本51.0错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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