Peculiar Eclipse java.lang.UnsupportedClassVersionError, Unsupported major.minor version 52.0

假装没事ソ 提交于 2019-11-30 18:14:51

The JAVA_HOME environment variable is irrelevant to how Eclipse will run code, as far as I'm aware. Likewise the compiler settings you've shown for a project don't affect how code is run.

Instead, you need to look at the Run Configuration you're using when you run it, and check the environment there. Make sure you're using Java 8, and all should be well. Click on the triangle next to the Run button, and select "Run Configurations..." to open the dialog with all the settings. Then look at the JRE tab, and ensure you're using the right JRE.

i see that you have a 32bits JDK version for the JDK 1.8 and a 64bits version for the JDK 1.7 i you running your project on a 64bits machine try to use the 64bits version of JDK 1.8 Note: you must have a 64bits version for eclipse too

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!