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

后端 未结 2 1154
时光说笑
时光说笑 2021-01-14 09:38

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

Everything was working great under IntelliJ IDEA

2条回答
  •  醉酒成梦
    2021-01-14 10:08

    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
    

提交回复
热议问题