posted 16 years ago
Why do you care?
Obfuscation is not security. In fact, SBO (security by obscurity) is not security at all.
What are you trying to prevent? If you are hoping for a DRM, you're not likely to (1) find one for Java code or (2) find one that works at all (see DVD cracks, game cracks, DES cracks, etc.).
You could, if you want to make it harder, encrypt the jar file, turning it to garbage, read it in at runtime, decrypt it, write it out, or point a class loader to it in memory.
Of course, that requires you keep the key in the executable, which defeats the whole purpose.
Implementing a real DRM is very hard, not an "intermediate" topic, in any language.