当前位置:网站首页>三行代码简单修改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 ./*
边栏推荐
- 二叉树之_哈夫曼树_哈弗曼编码
- 架构师需要具备的能力
- JSTL tag: fmt:formatdate tag format Chinese standard time or timestamp
- 2021-09-28
- Jenkins Pipeline使用
- Flutter automatically disappears after receiving push
- Alibaba stability fault emergency handling process
- @Scheduled implementation of scheduled tasks (concurrent execution of multiple scheduled tasks)
- Why are databases cloud native?
- 提高排名的 15 个基本 SEO 技巧
猜你喜欢
![最大数[抽象排序之抽象规则]](/img/47/f6bafacc95f487854a3e304325f3f0.png)
最大数[抽象排序之抽象规则]

It is extraordinary to make a move, which is very Oracle!
![[machine learning] parameter learning and gradient descent](/img/28/bb0a66b5f0702c995ca9cd7546b678.jpg)
[machine learning] parameter learning and gradient descent

Command line garbled

康威定律,作为架构师还不会灵活运用?
![Maximum number [abstract rules for abstract sorting]](/img/47/f6bafacc95f487854a3e304325f3f0.png)
Maximum number [abstract rules for abstract sorting]

Update PIP & Download jupyter Lab

3+1保障:高可用系统稳定性是如何炼成的?
Module 5 (microblog comments)

1251- Client does not support authentication protocol MySql错误解决方案
随机推荐
mysql导入导出数据到excel表日期出现问题
Another night when visdom crashed
画图常用配色
el-select clear 清空内容时触发事件
JS enter three integers a, B and C, and sort them from large to small (two methods)
torch. Tensor splicing and list (tensors)
Flutter automatically disappears after receiving push
[machine learning] what is machine learning?
始终保持疫情防控不放松 营造安全稳定的社会环境
GPS receiver design (1)
The push(), pop(), unshift(), shift() method in the JS array
Qt鼠标跟踪
J2EE从入门到入土01.MySQL安装
First acquaintance with CANopen
买基金在哪里开户安全?还请赐教
AI assisted paper drawing of PPT drawing
线上服务应急攻关方法论
KVM 脚本管理 —— 筑梦之路
剑指Offer 第 2 天链表(简单)
Oracle backup or restore database (expdp, impdp)