While I'm trying to obfuscate simple DataLoader.class file in ProGuard I get this error:
Reading program directory [C:\Users\uzytkownik\Documents\NetBeansProjects\ProTest\build\classes\Files\DataLoader.class]
Warning: class [DataLoader.class] unexpectedly contains class [Files.DataLoader]
Warning: there were 1 classes in incorrectly named files.
You should make sure all file names correspond to their class names.
The directory hierarchies must correspond to the package hierarchies.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
If you don't mind the mentioned classes not being written out,
you could try your luck using the '-ignorewarnings' option.
Please correct the above warnings first.
Here is the project: http://www49.zippyshare.com/v/14668241/file.html
I will be grateful for your help.
With the options -injars
and -libraryjars
, you should specify the proper base directory (or jar) of your classes, just like a classpath. In this case: classes
, not classes\Files\DataLoader.class
.
See the ProGuard manual > Troubleshooting > Warning: class file ... unexpectedly contains class ...