allow usage of java7 on ami