Add Java dependency

* Seems we get problem with Java 8 though