Java 1.7 seems to cause errors