当前位置:网站首页>启动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
边栏推荐
- Transformer architecture understanding
- Unit Test
- TiDB v6.0.0 (DMR) :缓存表初试丨TiDB Book Rush
- Viteproject require Syntax Compatibility Problem Solving require is not defined
- 【NVMe2.0b 14-3】Doorbell Buffer Config command、Device Self-test command
- Niuke White Moon race 52
- CUDA realizes matrix multiplication
- Rendering engine development
- Source code interpretation of detectron2 1--engine
- 一次cpu 跌底排查
猜你喜欢

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

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

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

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

Flink SQL 自定义 Connector

El input limit can only input numbers

Redis design and Implementation (II) | database (deletion strategy & expiration elimination strategy)

【NVMe2.0b 14-2】Create/Delete Queue

Wechat official account third-party platform development, zero foundation entry. I want to teach you

Redis design and Implementation (I) | data structure & object
随机推荐
Gilbert Strang's course notes on linear algebra - Lesson 2
Unity simple shader
Axure make menu bar effect
layer.open 当传值为数组或值太长时处理方法
Experiment 3 remote control
Oracle expansion table space installed in docker
Game 280 problem2: minimum operands to turn an array into an alternating array
Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
[untitled]
Sword finger offer II 076 The kth largest number in the array (use heap to solve TOPK problem)
VIM from dislike to dependence (21) -- cross file search
vim 从嫌弃到依赖(21)——跨文件搜索
在浏览器输入url到页面展示出来
【NVMe2.0b 14】NVMe Admin Command Set
【NVMe2.0b 14-2】Create/Delete Queue
2021-02-27
挖财开户安全吗?怎么有人说不靠谱。
This point in JS
Cesium learning notes (II) uploading data using rest API
Deploy the cow like customer network project on the ECS