Java, the object-oriented language, is a very popular programming language. But its class file, containing vast code information, is easy to be de-compiled. An obfuscation tool based on removing dynamic binding is proposed in this paper. After the obfuscation, code is more difficult to be studied, and the intellectual property will be protected in a better manner.