#ProGuard Guides?
72 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @dapper brook! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
What is the exact issue?
It can't find proguard .jar
I have installed proguard and there is no .jar
How did you configure Prouard?
Did you configure a main class?
Can you run the JAR before proguard?
Can you rename it to proguard.zip?
and then show its content?
also run the dir command in the cmd window first
i do not have it
it didn't come with proguard when I downloaded it
Oh so the issue is you cannot run proguard?
yes, because there is no proguard.jar
What happens when running proguard.bat from cmd?
Did your antivirus maybe delete the JAR?
I meant you run proguard.bat from inside cmd
ok
Can you show the content of the proguard.bat file?
what do you mean?
Can you show the full command you were executing to get that and the full output?
i just went into cmd and ran the command "proguard.bat"
Can you right-click on the proguard.bat file and select edit?
What other files and directories are in the proguard installation other than bin?
@ECHO OFF
REM Start-up script for ProGuard -- free class file shrinker, optimizer,
REM obfuscator, and preverifier for Java bytecode.
REM
REM Note: when passing file names containing spaces to this script,
REM you'll have to add escaped quotes around them, e.g.
REM ""C:/My Directory/My File.txt""
IF EXIST "%PROGUARD_HOME%" GOTO home
SET PROGUARD_HOME=%~dp0..
:home
java -jar "%PROGUARD_HOME%\lib\proguard.jar" %*
examples, docs, lib
Can you run proguardgui.bat?
ok that should work
in input/output, you should be enable to configure the JAR etc
and then use other options
and in shrinking you can do other things
Was that file created by the GUI?
yes
theres a save configuration button
Can you show the options in the GUI?
e.g. for input/output and shrinking
otherwise what happens if you disable the Swing L&F button there?
same thing
What's the output with the dontwarn thing
idk where to add it
you have thag configuration
maybe put it in a file
add the dontwarns (you'd also need -dontwarn java.awt.**)
and then run proguard.bat @yourconfigfilehere
something like that maybe