环境:Eclipse-jee-indigo + JDK 1.6.23
问题:别人的项目使用的是JDK 1.7,而本机采用的是JDK 1.6,当引入工程,配置好JDK,运行程序时会报“Unsupported major.minor version 51.0”错误。
解决:项目------>右键------>属性------>Java Compiler------>Compiler Compliance Level------>选择你使用的JDK版本------>应用。
总结:不同的JDK版本使用的major.minor不同,所以会导致这个错误。在项目中要使用当前电脑配置的JDK版本,切忌张冠李戴。
知识扩充:major.minor version,它相当于一个软件的主次版本号,只是在这里是标识的一个Java Class的主版本号和次版本号。详情请参考unsupported major.minor version 解决方法
参考资料:
解决Unsupported major.minor version 51.0问题的感悟
解决Unsupported major.minor version 51.0错误
分享到:
相关推荐
Major version increments with each card supported. Minor version increments with each new feature. Sub-minor version increments when an existing feature changes.
yar-java-client, Java client for laruence’s yar, concurrent async request supported.
EEMD family, Matlab version. PARFOR supported.zip
JSR-75-135-172_Supported List 主流手机对JSR 75 135 172的支持!
OpenCore Configurator [OpenCore 0.7.0 supported Version 2.40.0.1]
解决部分视频不能播放并提示,File is unplayable. Color space is not supported.文件无法播放。不支持颜色空间。
WebComponents.exe,官方控件,浏览器安装后 ,重启浏览器即可
对简支梁进行损伤识别的代码,有多种算法和完整程序注释
r40m备份42验OV5640_BPI-M2U_验证通过除了RJ45之外_20171115_1836没有外层目录.7z sun8iw11p1_android_m2ultra_uart42验证通过patch42.7z ...BPI-M2U(2017/11/18 16:49): 0、LCD+CTP默认正常 ...**_HDMI-Version_**
强壮的基于服务器支持的签名认证的电子邮件系统的安全性分析,郭丽峰,,通过认证的电子邮件是标准的电子邮件系统中的增值服务, 它允许发送方以公平的方式将消息传递给接受方。在这个意义上,或者发送��
ERROR:ABIs [armeabi] are not supported for platform.Supported ABIs are [arm64-v8a, armeabi-v7的完美解决方案-附件资源
Office安装错误Per-user install not supported.txt
NULL 博文链接:https://lectery.iteye.com/blog/485357
PowerVR.Supported+Extensions.OpenGL+ES.EGL.pdf opengl 扩展
解决SVN上传提示Empty directoriesis not supported 解决SVN上传提示Empty directoriesis not supported
django 设置settings.py,本文以mysql 为例,说明怎样配置mysql d的连接
Vocational rehabilitation and supported employment. Baltimore: Brookes Publishing, 372 pp., [dollar]43.00 Book Reviews 293 talented educators live largely on impulse, personal judgment, and ...