Revert "use java 1.6"

This reverts commit 14332cddc113cf4a1fb4a29d256dc79385f58b1a.