Whether you're patching in code from one of the many open-source libraries on the Web or making calls to common operating system routines, you inevitably spend some part of your week crunching code that you didn't write, and for which you may not have the source. When it comes time to debug this code, you'll need access to a good Java decompiler and the know-how to use it properly. At the same time, you'll also want to know how to protect your own code from prying eyes. For that, you need to know about obfuscation. In this beginner's guide to opening up and locking down Java code, Greg Travis walks you through the essentials of disassembling, decompiling, and obfuscating Java code, using examples from popular tools such as Mocha, HoseMocha, jmangle, and JODE.
|