views:

2024

answers:

4

This is along similar lines as these recent questions:

http://stackoverflow.com/questions/93290/best-java-obfuscation-application-for-size-reduction http://stackoverflow.com/questions/149937/creating-non-reverse-engineerable-java-programs

However, one ends up recommending yGuard and the other ProGuard but neither mention both. I wonder if we could get a comparison of each one and hear peoples experiences from both sides of the fence. Looking at this comparison chart on the ProGuard website its clearly angled towards ProGuard. But what about real-world experience of each - which one produces smaller output? which one is harder to decompile from? what Java versions are supported by each?

Personally I'm particularly interested from a J2ME point of view but please don't limit the discussion to that.

A: 

My opinion is - ProGuard is better. Output is smaller a bit. Optimizing is better and much faster.

Decompiling is simple in both cases. Well, i mean, if u know Java well and really know business-logic of what you're decompiling, there is no problem to get it back to sources from obfuscated classes.

So, my opinion is ProGuard is better.

Vugluskr
+3  A: 

Proguard is a better product; especially if you take the time to go through the settings for J2ME.

Specifically for J2ME there is a far better (commercial) product called mBooster

I've been getting around 25% improvement in size on my application after its been through Proguard. This is mainly to do with the better Zip compression on the Jar file and comprehensive support for class merging and preverification.

edsumner
Just as a note - proguard has nothing to do with the zip compression :P
JaanusSiim
A: 

Results for my project.

Obfuscation - both fine.

Optimisation - ProGuard produced 20% faster code (for the measured app bottleneck).

Compactness - ProGuard about 5% smaller.

Configuration / Ant - YGuard is much easier to configure.

So, I'd advise ProGuard - but configuration and ant integration could definitely be improved.

Pool
A: 

So Could you please tell me how how I can run YGuard or Proguard with my web application

Krishna

Krishan
This is not a discussion thread, if you need help with these then a) google it b) if you still need help, create a new question.
roryf