当前位置:网站首页>启动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
边栏推荐
- 示波器探头对测量电容负荷有影响吗?
- 【NVMe2.0b 14-8】Set Features(下篇)
- C# ListBox如何获取选中的内容(搜了很多无效的文章)
- 2021-02-27
- Flink SQL 自定义 Connector
- Transformer architecture understanding
- Detectron2 source code reading 2--- using the configurable decorator to build the dataloader
- [untitled]
- Tidb 6.0: making Tso more efficient tidb Book rush
- Detailed explanation of pytoch's scatter function
猜你喜欢

一次cpu 跌底排查
![[nvme2.0b 14 - 5] commande de téléchargement / commande du logiciel](/img/98/bb250030f3e31e71d48e3be3ea4698.png)
[nvme2.0b 14 - 5] commande de téléchargement / commande du logiciel

Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which

Wsl2 using GPU for deep learning
![[nvme2.0b 14-8] set features (Part 2)](/img/fe/67fd4f935237f9aa835e132e696b98.png)
[nvme2.0b 14-8] set features (Part 2)

Deploy the cow like customer network project on the ECS

VIM from dislike to dependence (21) -- cross file search

Redis design and Implementation (IV) | master-slave replication

Redis design and Implementation (I) | data structure & object

【NVMe2.0b 14-3】Doorbell Buffer Config command、Device Self-test command
随机推荐
Gilbert Strang's course notes on linear algebra - Lesson 4
Unity简单shader
Swagger use
mysql基础入门 day4 动力节点[老杜]课堂笔记
Summary of common pytoch APIs
Redis design and Implementation (I) | data structure & object
微信公众号第三方平台开发,零基础入门。想学我教你啊
Detectron2 source code reading 4-- registrar construction model
【NVMe2.0b 14-4】Directive Send/Receive command
Applet uses QR code plug-in
[untitled]
Conversion between map, string and JSON
Cesium learning notes (V) custom geometry and appearance
Markdown支持的emoji图标
自制GIF动态图-gifcam
Experiment 6 examination
Getordefault method of map class
CUDA realizes L2 European distance
Redis design and Implementation (VII) | publish & subscribe
【NVMe2.0b 14-2】Create/Delete Queue