java.lang.UnsupportedClassVersionError: Bad version number in .class file 解决办法

news/2024/7/24 11:43:32 标签: java

java.lang.UnsupportedClassVersionError: Bad version number in .class file
造成这种错误的原因是支撑Tomcat运行的JDK版本与支撑application运行的JDK版本不一致导致的.
把它们的JDK版本改成一致步骤如下:
1.Window --> Preferences -->Java --> compiler中的compiler compliance level对应的下拉菜单中选择JDK版本.
2.Window --> Preferences -->MyEclipse --> Servers -->Tomcat --> Tomcat n.x -->JDK中的Tomcat JDK name下的下拉菜单中选择自身电脑上安装的JDK版本(必需与步骤1中的JDK版本一致).


http://www.niftyadmin.cn/n/1832376.html

相关文章

实现上一篇,下一篇的效果

实现如图效果 上一篇&#xff1a;select top 1 * from Table where id<id 下一篇&#xff1a;select top 1 * from Table where id>id 转载于:https://www.cnblogs.com/duanlinlin/p/3397487.html

Probably at least one of the constraints in the following list is one you don't want.

这个提示并不是出错&#xff0c;不理会它我的程序也没出现什么问题 但是处于强迫症&#xff0c;还是努力寻找解决的方法。。。 最终发现问题如下&#xff1a; 在xib各种绘制和添加约束的UITableViewCell之后&#xff0c;在某一特定情况想要隐藏这个Cell&#xff0c;于是我就在U…

jsp: c:foreach 输出序号

关键在于<c:forEach>的varStatus属性&#xff0c;具体代码如下&#xff1a; <table width"500" border"0" cellspacing"0" cellpadding"0"> <tr><th>序号</th><th>姓名</th> </tr> &…

VUE Iview 报错 “TypeError: Cannot read property ‘validate‘ of undefined“(解决)

在使用框架iview的表单验证的时候报出错误 1 错误&#xff1a;TypeError: Cannot read property ‘validate’ of undefined [Vue warn]: Error in v-on handler: "TypeError: Cannot read property validate of undefined"found in---> <Button><Form…

aix系统查看硬件信息

2019独角兽企业重金招聘Python工程师标准>>> 查看内存 使用命令 # lsdev -Cc memory 查看配置的物理内存设备&#xff0c;下面为其输出示例&#xff1a; mem0 Available 00-00 Memory L2cache0 Available 00-00 L2 Cache 再使用命令# lsattr -El mem0 输出如下 …

开源 免费 java CMS - FreeCMS1.5 标签 infoNextList

2019独角兽企业重金招聘Python工程师标准>>> 下载地址&#xff1a;http://code.google.com/p/freecms/ infoNextList 从FreeCMS 1.5 开始支持 根据参数提取下几条信息对象列表。 参数 说明 siteid 信息所属站点id channelid 信息所属栏目id …

常用正则表达式收集

很多不太懂正则的朋友&#xff0c;在遇到需要用正则校验数据时&#xff0c;往往是在网上去找很久&#xff0c;结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下&#xff0c;在这里分享一下。给自己留个底&#xff0c;也给朋友们做个参考。 一、校…

iView Table通过render添加一个Input标签,并获取标签的值

1 问题描述 我想要在iView框架&#xff0c;标签Table中通过render添加一个Input标签&#xff0c;并获取标签的值 2 需求描述 以下表格最后一个是一个Input标签&#xff0c;是后台传过来的数据&#xff0c;给每一行最后一列添加一个Input,用户输入内容后再提交即可。 3 解决…