File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Obfuscating Package Names

 
Oghie Ojior
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to configure Antenna or ProGuard/Ant to obfuscate package names? I am able to obfuscate class names but not package name with my current configuration. I require the package names to also be obfuscated to include classes from optional packages that contain java and javax in their package names.

Thanks in advance
 
lexander Bosco
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ojior how u doing

sorry dat am asking a question instead of an answer
but b4 i ask ur packages that u want to include are they in the lib folder of your application? if they are they shouldbe included in the obfuscated jar file.

ok! i want to actually know how to run the progaurd obfuscator in my J2ME wireless toolkit.
i followed the installation instructions and yet it complains to me whenever i run it to obfuscate my application.
it complains that my application jar-size in the app descriptor is not the same with the un-obfuscated jar size .
i have tried progaurd obfuscator and retroguard.
i cant really tell what to do .
what do you suggest?
 
Oghie Ojior
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi lexander:

I am using an ant script to compile and run my code against the Progaurd obfuscator. The classes get obfuscated but the package names do not, so I have a situation way java and javax packages remain in the jar I am trying to install. In my ant script the property midp_home points to my J2ME wireless toolkit directory.

Below is my ant script. Hope this helps.


 
Oghie Ojior
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI: I solved my problem by importing my code into NetBean and using its build facilities to compile, pre-verify, obfuscate and package the code.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic