当前位置:网站首页>三行代码简单修改jar包的项目代码
三行代码简单修改jar包的项目代码
2022-06-25 12:34:00 【Maynor学长】
需求
由于公司项目没给权限,无法直接拿到项目,现需要修改jar包的某张图片,直接在jar包并修改会报错
过程
ERROR 2022-06-24 16:27:02.398 [Tomcat-startStop-1] org.apache.catalina.core.ContainerBase[line:181] - A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
如果直接修改jar包的代码会报错 让你重新编译,而我只需要替换一下图片而已

结果
最后在网上找到办法 直接在虚拟机解压并打包就可以了。
解压jar包
mkdir aaa
unzip classes.jar -d ./aaa
12
修改aaa文件夹里面的内容后 ,进入aaa文件夹
重新打成jar包
jar -cfM0 new-classes.jar ./*
边栏推荐
- 原生js---无限滚动
- 地理空间搜索:kd树的实现原理
- 剑指 Offer 第 1 天栈与队列(简单)
- JS uses the for loop in the function to insert and delete the array at the specified position
- Select randomly by weight [prefix and + dichotomy + random target]
- CUDA error: unspecified launch failure
- 剑指 Offer II 028. 展平多级双向链表
- 2021-09-30
- 515. Find Largest Value in Each Tree Row
- Foreach method of array in JS
猜你喜欢

2021-09-28

剑指 Offer II 032. 有效的变位词

Elemntui's select+tree implements the search function

My first experience of go+ language -- a collection of notes on learning go+ design architecture

C program linking SQLSERVER database: instance failed

3+1 guarantee: how is the stability of the highly available system refined?

CUDA error: unspecified launch failure

微信全文搜索技术优化

线上服务应急攻关方法论

深圳民太安智能二面_秋招第一份offer
随机推荐
浏览器的5种观察器
1251- Client does not support authentication protocol MySql错误解决方案
最大数[抽象排序之抽象规则]
【AI助力科研】loss曲线傻瓜式绘制
MySQL adds, modifies, and deletes table fields, field data types, and lengths (with various actual case statements)
使用Visio画立方体
20220620 interview reply
Command line garbled
yolov5训练使用的负样本图片
地理空间搜索 ->R树索引
515. Find Largest Value in Each Tree Row
2021-10-21
提高排名的 15 个基本 SEO 技巧
出手即不凡,这很 Oracle!
[flask tutorial] flask development foundation and introduction
剑指 Offer 第 1 天栈与队列(简单)
How to implement a high-performance load balancing architecture?
JS uses the for loop in the function to insert and delete the array at the specified position
Slice() and slice() methods of arrays in JS
[Visio]平行四边形在Word中模糊问题解决