当前位置:网站首页>启动jar包报错UnsupportedClassVersionError,如何修复
启动jar包报错UnsupportedClassVersionError,如何修复
2022-06-30 08:33:00 【进击的豌豆哥】
首先查看完整异常日志
Exception in thread "main" java.lang.UnsupportedClassVersionError: run/halo/app/Application has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
大致意思是,这个jar包已由最新版本的Java运行时(类文件版本55.0)编译,当前版本的Java运行时仅识别高达52.0的类文件版本。
通俗来讲,就是我们使用Java 11编译了我们的类,并尝试使用Java 8运行它。
解决方案,使用java11环境运行即可
Java版本号参考
45 = Java 1.1
46 = Java 1.2
47 = Java 1.3
48 = Java 1.4
49 = Java 5
50 = Java 6
51 = Java 7
52 = Java 8
53 = Java 9
54 = Java 10
55 = Java 11
56 = Java 12
57 = Java 13
边栏推荐
猜你喜欢
Gilbert Strang's course notes on linear algebra - Lesson 3
Redis设计与实现(六)| 集群(分片)
TiDB 6.0:让 TSO 更高效丨TiDB Book Rush
Summary of common pytoch APIs
Does the oscilloscope probe affect the measurement of capacitive load?
【NVMe2.0b 14-8】Set Features(下篇)
示波器探头对测量电容负荷有影响吗?
Gilbert Strang's course notes on linear algebra - Lesson 1
【NVMe2.0b 14-2】Create/Delete Queue
【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
随机推荐
Pycharm Dlib library installation
mysql基础入门 动力节点[老杜]课堂作业
Experiment 4 QT
2021-05-06
Redis设计与实现(三)| 服务器与客户端的交互(事件IO模型)
This point in JS
【kotlin 协程】万字协程 一篇完成kotlin 协程进阶
Cesium learning notes (II) uploading data using rest API
Flink 数据偶尔数据积压导致checkpoint失败
【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
Cesium learning notes (III) creating instances
2021-02-19
挖财开户安全吗?怎么有人说不靠谱。
Gilbert Strang's course notes on linear algebra - Lesson 1
Does the oscilloscope probe affect the measurement of capacitive load?
Gilbert Strang's course notes on linear algebra - Lesson 4
一次cpu 跌底排查
Interference source current spectrum test of current probe
Conversion between map, string and JSON
文件上传 upload 组件 on-success 事件,添加自定义参数