This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See I tried our other jars by using ProGuard. The compression rate of ProGuard is obvious stronger. A 56k jar for siemens was compressed by WTK retroguard, we got 52k jar, but it works. However, when I use ProGuard, the result is 45k. However, it does not work. The seimens phone gives more readable message. It could not find our main MIDLet class, even it is obviously in the jar. Why? I'm totally confused. Any hint or help will be mostly appreciated. Thanks!
posted 14 years ago
My ProGuard config file is here, please take a look, what is wrong? Huge thanks! ================= -printseeds -injar plain/BLTBowling-Siemens.jar -outjar obf/BLTBowling-Siemens.jar -libraryjar C:\tools\siemens\SMTK\lib\api.jar -keep public class com.blt.BLTBowling.Bowling -keep public class * extends javax.microedition.midlet.MIDlet =================
posted 14 years ago
I also tried the ant approach, got the same result. Michael, please help! Thanks!
Hi Roseanne, Several points to consider: 1. Do you obfuscate the class file before or after preverification? That could make a difference. 2. The one that does not work on Seimens devices: does it work on WTK? 3. I use a different postprocessor: http://jode.sourceforge.net/ It not only obfuscates the bytecode but also gets rid of unused classses. That said, there are times I cannot get the getWidth() and getHeight() method to work on Nokia devices. It just takes some fiddling. As a last resoort, you can have a look at your obfuscated JAR. It should have the entry point MIDlet class file with a public MIDlet class. cheers Michael
Originally posted by Lasse Koskela: Michael, do you see any near-future problems with JODE considering that it seems to be "dead" in terms of activity?
Hmm, I do not know. I have never talked with the author. But I think as a code postprocessor, JODE is pretty much mature as it is now. The Java bytecode spec has not changed much in all these years. cheers Michael