当前位置:网站首页>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 ./*
边栏推荐
- 3+1 guarantee: how is the stability of the highly available system refined?
- Native JS --- infinite scrolling
- Elemtnui select control combined with tree control to realize user-defined search method
- list.replace, str.append
- J2EE从入门到入土01.MySQL安装
- Oracle trigger error report table or view does not exist
- Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token
- 英语口语 - 弱读
- Lexical trap
- 20220620 interview reply
猜你喜欢
Module 5 (microblog comments)

Analyse de l'optimisation de la réécriture des requêtes lazyagg de l'entrepôt

爱可可AI前沿推介(6.25)

PPT绘图之AI助力论文图

深圳民太安智能二面_秋招第一份offer

Sword finger offer day 1 stack and queue (simple)

Maui的学习之路(二)--设置

Sword finger offer II 028 Flatten multi-level bidirectional linked list
![[visio] solving the fuzzy problem of parallelogram in word](/img/04/8a1de2983d648e67f823b5d973c003.png)
[visio] solving the fuzzy problem of parallelogram in word

MySQL writes user-defined functions and stored procedure syntax (a detailed case is attached, and the problem has been solved: errors are reported when running user-defined functions, and errors are r
随机推荐
New Gospel of drug design: Tencent, together with China University of science and technology and Zhejiang University, developed an adaptive graph learning method to predict molecular interactions and
利用cmd(命令提示符)安装mysql&&配置环境
使用Visio画立方体
[flask tutorial] flask overview
汇编标志位相关知识点(连)
Seven competencies required by architects
Using CMD (command prompt) to install MySQL & configure the environment
始终保持疫情防控不放松 营造安全稳定的社会环境
20220620 interview reply
Update PIP & Download jupyter Lab
5 kinds of viewer for browser
原生js---无限滚动
1251- Client does not support authentication protocol MySql错误解决方案
Introduction to mongodb chapter 01 introduction to mongodb
字符串入门十八讲合集四
Sword finger offer II 028 Flatten multi-level bidirectional linked list
Lexical trap
The amount is verified, and two zeros are spliced by integers during echo
深圳民太安智能二面_秋招第一份offer
Conway's law can not be flexibly applied as an architect?