• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Obfuscating Package Names

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic