should work with jdk6