update syntax to support java 5 and 6

Remove jdk attribute from travis config