Updated java dependency to Java 8.