UnsupportedClassVersionError - JDKs have same version

前端 未结 4 1571
无人及你
无人及你 2021-01-17 06:46

I have taking an existing, old, Java code base and changed one class. I have recompiled the code base in Java 1.5.0. I then successfully deploy this code on Tomcat.

4条回答
  •  执笔经年
    2021-01-17 07:32

    Seems as you have compiled your code with a higher Java version than 1.5. You should check if you have the right JRE installed (Window -> Preferences -> Java -> Installed JREs).

    You should also check if the Compiler compliance level is set to 1.5 (Window -> Preferences -> Java -> Compiler).

    I'm assuming you are using Eclipse...

提交回复
热议问题