[java] Ant is using wrong java version