Hello.
I'm having trouble obfuscating my jar file using ProGuard 3.9.
My proguard.pro file looks like this:
---------------------------------------------------------------------
-injars
JParaMindAndDictStandard.jar
-outjars
JParaMindAndDict.jar
-libraryjars <java.home>/lib/rt.jar
-printmapping proguard.map
-overloadaggressively
-defaultpackage ''
-allowaccessmodification
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
---------------------------------------------------------------------
And when I call "java -jar C:\proguard3.9\lib\proguard.jar
@proguard.pro", I get the following error message:
---------------------------------------------------------------------
Warning: JParaMind.FindW$9: can't find referenced method 'void access
$900(JParaM
ind.FindW,java.awt.event.ActionEvent)' in class JParaMind.FindW
Warning: JParaMind.SubstH$9: can't find referenced method 'void access
$800(JPara
Mind.SubstH,java.awt.event.ActionEvent)' in class JParaMind.SubstH
Warning: JParaMind.SubstH$8: can't find referenced method 'void access
$700(JPara
Mind.SubstH,java.awt.event.ActionEvent)' in class JParaMind.SubstH
Warning: JParaMind.SmallMerge$9: can't find referenced method 'void
access$1000(
JParaMind.SmallMerge,java.awt.event.ActionEvent)' in class
JParaMind.SmallMerge
Warning: there were 4 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile them and try again.
Alternatively, you may have to specify the options
'-dontskipnonpubliclibraryclasses' and/or
'-dontskipnonpubliclibraryclassmembers'.
If you are sure the mentioned classes are not used anyway,
you could try your luck using the '-ignorewarnings' option.
Error: Please correct the above warnings first.
---------------------------------------------------------------------
The jar file was created flawlessly by NetBeans, and the application
runs bug-free.
I would appreciate any inputs on what the errors mean and possible
solutions to them.
Thank you.
--
Robert Pearson
ParaMind Brainstorming Software http://www.paramind.net
Creative Virtue Press/Telical Books/Regenerative Music
http://www.rspearson.com/
Zig - 27 Jun 2007 04:24 GMT
Considering that your problems are coming from anonymous classes, that
suggests you have some obsolete classes lingering around in your build
path. Be sure to *clean* your workspace, and try again.
HTH,
> Hello.
>
[quoted text clipped - 51 lines]
> Creative Virtue Press/Telical Books/Regenerative Music
> http://www.rspearson.com/