use java 6, fix some perl file issues