run on java6