当前位置:网站首页>启动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
边栏推荐
- Environment configuration of ROS Aubo manipulator
- Cesium learning notes (I)
- Cesium learning notes (IV) visual image & Terrain
- Sword finger offer II 074 Merge interval (sort, array)
- Leetcode47. full arrangement II
- Gilbert Strang's course notes on linear algebra - Lesson 3
- 【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
- C# ListBox如何获取选中的内容(搜了很多无效的文章)
- Game 280 problem2: minimum operands to turn an array into an alternating array
- End-to-end 3D Point Cloud Instance Segmentation without Detection
猜你喜欢

A troubleshooting of CPU bottom falling

Gilbert Strang's course notes on linear algebra - Lesson 1

Flink Exception -- No ExecutorFactory found to execute the application

vim 从嫌弃到依赖(21)——跨文件搜索

Sword finger offer II 076 The kth largest number in the array (use heap to solve TOPK problem)

Wechat applet reports errors using vant web app

Build a docker image of Henkel database from 0

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

Sword finger offer II 075 Array relative sort (custom sort, count sort)

2021-05-06
随机推荐
Detectron2 source code reading 3-- encapsulating dataset with mapper
Redis design and Implementation (VII) | publish & subscribe
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
【NVMe2.0b 14-4】Directive Send/Receive command
[nvme2.0b 14-8] set features (Part 2)
2021-04-29
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
2021-05-06
Detailed explanation of pytoch's scatter function
Unity basic lighting model
Redis设计与实现(七)| 发布 & 订阅
Cesium learning notes (I)
End-to-end 3D Point Cloud Instance Segmentation without Detection
Redis design and Implementation (VIII) | transaction
Gilbert Strang's course notes on linear algebra - Lesson 2
Redis design and Implementation (II) | database (deletion strategy & expiration elimination strategy)
Redis设计与实现(四)| 主从复制
Using typera+picgo to realize automatic uploading of markdown document pictures
【NVMe2.0b 14-2】Create/Delete Queue
C# ListBox如何获取选中的内容(搜了很多无效的文章)