use jre6 and modify test case
Signed-off-by: Tim.Guan <gkqwt1990@gmail.com>