init for jdk7