use jdk1.5 and fix bugs.