support jre 1.6 above