How to delete JndiLookup.class class from embedded jar in linux

Solution 1:

for windows, Install 7-zip and do the following: open cmd as administrator

cd {App Directory}
for /R %f in (*log4j-core*.jar) do "C:\program Files\7-Zip\7z" d %f org/apache/logging/log4j/core/lookup/JndiLookup.class 

for Linux, install zip and run below Command:

zip -q -d {App Directory}/log4j-core*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class

or

find . -type f -name "*log4j-core*.jar" -execdir zip -q -d "{}" org/apache/logging/log4j/core/lookup/JndiLookup.class \;