当前位置:网站首页>Three lines of code to simply modify the project code of the jar package
Three lines of code to simply modify the project code of the jar package
2022-06-25 13:06:00 【Maynor senior】
demand
Because the company does not give permission to the project , Unable to get the project directly , Now it needs to be modified jar A picture of the package , Directly in jar Package and modify will report an error
The process
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[]]
If you modify it directly jar The package code will report an error Let you recompile , And I just need to replace the picture

result
Finally, find a way online Just unzip and package it in the virtual machine .
decompression jar package
mkdir aaa
unzip classes.jar -d ./aaa
12
modify aaa After the contents in the folder , Get into aaa Folder
Strike again jar package
jar -cfM0 new-classes.jar ./*
边栏推荐
猜你喜欢
随机推荐
揭秘GaussDB(for Redis):全面对比Codis
Differences between JS and JQ operation objects
Spoken English - weak reading
[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1
MySQL learning notes
买基金在哪里开户安全?还请赐教
Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"
Match regular with fixed format beginning and fixed end
使用Visio画立方体
How to implement a high-performance load balancing architecture?
字节跳动Dev Better技术沙龙来啦!参与活动赢好礼,限时免费报名中!
Geospatial search - > R tree index
美创入选“2022 CCIA中国网络安全竞争力50强”榜单
Connect with the flight book and obtain the user information according to the userid
剑指 Offer 04. 二维数组中的查找
Summer Ending
三行代码简单修改jar包的项目代码
The editor is used every day. What is the working principle of language service protocol?
Reload cuda/cudnn/pytorch
字符串入门十八讲合集四









