Try using a java dependency of java > 1.6