Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Problem using ProGuard

Thread view: 
paramindsoftware@gmail.com - 26 Jun 2007 22:41 GMT
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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.