Move java7 dependency into init