I don' think you can.
Here is another question, which covers this topic:
make your Jar not to be decompiled
A better bet might be obfuscation. It scrambles all names in the source code, so that it becomes unreadable even if it is still compilable.