Update Travis command to check Java version.