当前位置:网站首页>启动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
边栏推荐
猜你喜欢

el-input 限制只能输数字

Deploy the cow like customer network project on the ECS

Flink 数据偶尔数据积压导致checkpoint失败

【NVMe2.0b 14-6】Format NVM、Keep Alive、Lockdown command

Redis设计与实现(二)| 数据库(删除策略&过期淘汰策略)

【NVMe2.0b 14】NVMe Admin Command Set
![[JUC series] overview of fork/join framework](/img/49/2cadac7818b0c1100539fd32ec0d37.png)
[JUC series] overview of fork/join framework

从0开始构建一个瀚高数据库Docker镜像

Detailed explanation of pytoch's scatter function

Redis design and Implementation (II) | database (deletion strategy & expiration elimination strategy)
随机推荐
Redis设计与实现(四)| 主从复制
2021-02-18
Cesium learning notes (II) uploading data using rest API
Redis design and Implementation (II) | database (deletion strategy & expiration elimination strategy)
示波器探头对测量电容负荷有影响吗?
Experiment 4 QT
Be careful of this hole in transmittable thread local
Common tools installation, configuration, compilation, link, etc
涂鸦Wi-Fi&BLE SoC开发幻彩灯带
Axure制作菜单栏效果
Using typera+picgo to realize automatic uploading of markdown document pictures
Redis design and Implementation (III) | interaction between server and client (event IO model)
【NVMe2.0b 14-5】Firmware Download/Commit command
Viteproject require Syntax Compatibility Problem Solving require is not defined
vite項目require語法兼容問題解决require is not defined
基于Svelte3.x桌面端UI组件库Svelte UI
Does the oscilloscope probe affect the measurement of capacitive load?
Wechat official account third-party platform development, zero foundation entry. I want to teach you
Swagger use
Redis设计与实现(三)| 服务器与客户端的交互(事件IO模型)