[Java Fix] Updated Java used from 1.5 to 1.7