use current java version for compatibility if less than 1.6