You are currently browsing the tag archive for the ‘obfuscation’ tag.
Tag Archive
Using Obfuscation with Java ME SDK 3.3
09/05/2013 in Embedded, Mobile & Embedded | Tags: Java ME Embedded, Java ME SDK, NetBeans, obfuscation, ProGuard | Leave a comment
Obfuscation is a really helpful mechanism to reduce the size of your Java ME Embedded application code to a minimum.
When developing Java embedded applications using the Java ME SDK 3.3 with NetBeans you would normally be able to easily install the ProGuard obfuscator via the NetBeans ProGuard plugin and then set it to automatically obfuscate every project build.
However, for NetBeans 7.3 a licensing incompatibly prevents the ProGuard plugin to be available directly on the NetBeans 7.3 update center. This issue has been fixed for the upcoming NetBeans 7.4.
If you want to use ProGuard with NetBeans 7.3 there is an easy workaround described on the NetBeans bug tracker: https://netbeans.org/bugzilla/show_bug.cgi?id=227701. Scroll down to the end of the thread to see:
——————————————–
For now it is possible to use following workaround for proguard: 1. Download proguard.jar from http://sourceforge.net/projects/proguard/files/proguard/ 2. Insert following line in {YOUR_PROJECT_DIR}/nbproject/private/private.properties OR {NB_USERDIR}/build.properties (no need to insert in both): obfuscator.classpath={PATH_TO_proguard.jar} (e.g. obfuscator.classpath=C:\\JavaME\\Proguard\\proguard.jar)
——————————————-
Hope this helps. Cheers,
— Terrence


Recent Comments