how to use proguard in mac os

First download proguard from this https://sourceforge.net/projects/proguard/
Extract and open proguard-7.1.0-beta5/bin/proguardgui.sh

Click Next Input/Output Tab.
Add Input = browse and select your appfilename.jar
Output = folder where to save the output. you need to create folder manually . in my case i use "out" folder.

In Library Jars, aars, wars, ears, jmods, zips, apks, and directories
Click Add
//This is required

/Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home/jmods


//If your App use libraries also add them.

/Users/jhovarie/Desktop/MyProjects/Dev/jars/json-20210307.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/dist/tess4j-3.4.8.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/commons-beanutils-1.9.2.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/commons-io-2.6.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/commons-logging-1.2.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/fontbox-2.0.9.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/ghost4j-1.0.1.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/hamcrest-core-1.3.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/itext-2.1.7.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jai-imageio-core-1.4.0.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jbig2-imageio-3.0.0.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jboss-vfs-3.2.12.Final.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jcl-over-slf4j-1.7.25.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jna-4.1.0.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/jul-to-slf4j-1.7.25.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/junit-4.12.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/lept4j-1.6.4.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/log4j-1.2.17.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/log4j-over-slf4j-1.7.25.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/logback-classic-1.2.3.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/logback-core-1.2.3.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/nblibraries.properties
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/pdfbox-2.0.9.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/pdfbox-tools-2.0.9.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/slf4j-api-1.7.25.jar
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/win32-x86
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/win32-x86-64
/Users/jhovarie/Desktop/MyProjects/Dev/jars/Tess4J/lib/xmlgraphics-commons-1.5.jar


Go to "Process" Tab then click Process button to start obfuscate.
If there is no issue. then the output is saved in "out" folder.

Last update on Aug 12, 2024

Tags: proguard

Back to Posts

Comments

No comments yet.

ForceTeach Corporation 2024